Class: UIViewController::SubviewHash

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-pixate-layout/z_core_extensions/ui_view_controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(view) ⇒ SubviewHash

Returns a new instance of SubviewHash.



37
38
39
# File 'lib/motion-pixate-layout/z_core_extensions/ui_view_controller.rb', line 37

def initialize(view)
  @view = view
end

Instance Attribute Details

#viewObject (readonly)

Returns the value of attribute view.



35
36
37
# File 'lib/motion-pixate-layout/z_core_extensions/ui_view_controller.rb', line 35

def view
  @view
end

Instance Method Details

#[](key) ⇒ Object



41
42
43
# File 'lib/motion-pixate-layout/z_core_extensions/ui_view_controller.rb', line 41

def [](key)
  hash[key] ||= current_hash[key]
end