Class: GGLib::Containable::Dimension
- Inherits:
-
Object
- Object
- GGLib::Containable::Dimension
- Defined in:
- lib/widget.rb
Constant Summary collapse
- Infinite =
-1
Instance Attribute Summary collapse
-
#container ⇒ Object
Returns the value of attribute container.
-
#horizontal ⇒ Object
Returns the value of attribute horizontal.
-
#vertical ⇒ Object
Returns the value of attribute vertical.
Instance Method Summary collapse
-
#initialize(h, v) ⇒ Dimension
constructor
A new instance of Dimension.
Constructor Details
#initialize(h, v) ⇒ Dimension
Returns a new instance of Dimension.
34 35 36 |
# File 'lib/widget.rb', line 34 def initialize(h, v) @horizontal, @vertical = h, v end |
Instance Attribute Details
#container ⇒ Object
Returns the value of attribute container.
33 34 35 |
# File 'lib/widget.rb', line 33 def container @container end |
#horizontal ⇒ Object
Returns the value of attribute horizontal.
32 33 34 |
# File 'lib/widget.rb', line 32 def horizontal @horizontal end |
#vertical ⇒ Object
Returns the value of attribute vertical.
32 33 34 |
# File 'lib/widget.rb', line 32 def vertical @vertical end |