Class: UIViewController::SubviewHash
- Inherits:
-
Object
- Object
- UIViewController::SubviewHash
- Defined in:
- lib/motion-pixate-layout/z_core_extensions/ui_view_controller.rb
Instance Attribute Summary collapse
-
#view ⇒ Object
readonly
Returns the value of attribute view.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(view) ⇒ SubviewHash
constructor
A new instance of SubviewHash.
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
#view ⇒ Object (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 |