Class: ActionView::LookupContext::DetailsKey

Inherits:
Object
  • Object
show all
Defined in:
actionpack/lib/action_view/lookup_context.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDetailsKey

Returns a new instance of DetailsKey.



66
67
68
# File 'actionpack/lib/action_view/lookup_context.rb', line 66

def initialize
  @hash = object_hash
end

Instance Attribute Details

#hashObject (readonly) Also known as: object_hash

Returns the value of attribute hash



55
56
57
# File 'actionpack/lib/action_view/lookup_context.rb', line 55

def hash
  @hash
end

Class Method Details

.clearObject



62
63
64
# File 'actionpack/lib/action_view/lookup_context.rb', line 62

def self.clear
  @details_keys.clear
end

.get(details) ⇒ Object



58
59
60
# File 'actionpack/lib/action_view/lookup_context.rb', line 58

def self.get(details)
  @details_keys[details] ||= new
end