Class: Opine::View
Instance Attribute Summary collapse
-
#view ⇒ Object
Returns the value of attribute view.
Instance Method Summary collapse
- #<<(whatever) ⇒ Object
-
#initialize(view) ⇒ View
constructor
A new instance of View.
Constructor Details
#initialize(view) ⇒ View
Returns a new instance of View.
3 4 5 |
# File 'lib/opine/widgets/view_osx.rb', line 3 def initialize view @view = view end |
Instance Attribute Details
#view ⇒ Object
Returns the value of attribute view.
2 3 4 |
# File 'lib/opine/widgets/view_osx.rb', line 2 def view @view end |
Instance Method Details
#<<(whatever) ⇒ Object
6 7 8 |
# File 'lib/opine/widgets/view_osx.rb', line 6 def << whatever view.addSubview whatever end |