Class: ActionView::LookupContext::DetailsKey

Inherits:
Object
  • Object
show all
Defined in:
actionview/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.



72
73
74
# File 'actionview/lib/action_view/lookup_context.rb', line 72

def initialize
  @hash = object_hash
end

Instance Attribute Details

#hashObject (readonly) Also known as: object_hash

Returns the value of attribute hash



61
62
63
# File 'actionview/lib/action_view/lookup_context.rb', line 61

def hash
  @hash
end

Class Method Details

.clearObject



68
69
70
# File 'actionview/lib/action_view/lookup_context.rb', line 68

def self.clear
  @details_keys.clear
end

.get(details) ⇒ Object



64
65
66
# File 'actionview/lib/action_view/lookup_context.rb', line 64

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