Class: Opine::View

Inherits:
Widget show all
Defined in:
lib/opine/widgets/view_osx.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#viewObject

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