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