Class: ActionView::LookupContext::DetailsKey
- Inherits:
-
Object
- Object
- ActionView::LookupContext::DetailsKey
- Defined in:
- actionpack/lib/action_view/lookup_context.rb
Overview
:nodoc:
Instance Attribute Summary (collapse)
-
- (Object) hash
(also: #object_hash)
readonly
Returns the value of attribute hash.
Class Method Summary (collapse)
Instance Method Summary (collapse)
-
- (DetailsKey) initialize
constructor
A new instance of DetailsKey.
Constructor Details
- (DetailsKey) initialize
A new instance of DetailsKey
56 57 58 |
# File 'actionpack/lib/action_view/lookup_context.rb', line 56 def initialize @hash = object_hash end |
Instance Attribute Details
- (Object) hash (readonly) Also known as: object_hash
Returns the value of attribute hash
49 50 51 |
# File 'actionpack/lib/action_view/lookup_context.rb', line 49 def hash @hash end |
Class Method Details
+ (Object) get(details)
52 53 54 |
# File 'actionpack/lib/action_view/lookup_context.rb', line 52 def self.get(details) @details_keys[details.freeze] ||= new end |