Class: GGLib::Containable::Padding
- Inherits:
-
Object
- Object
- GGLib::Containable::Padding
- Defined in:
- lib/widget.rb
Instance Attribute Summary collapse
-
#bottom ⇒ Object
Returns the value of attribute bottom.
-
#container ⇒ Object
Returns the value of attribute container.
-
#left ⇒ Object
Returns the value of attribute left.
-
#right ⇒ Object
Returns the value of attribute right.
-
#top ⇒ Object
Returns the value of attribute top.
Instance Method Summary collapse
-
#initialize(t, r, b, l, contain = nil) ⇒ Padding
constructor
A new instance of Padding.
Constructor Details
#initialize(t, r, b, l, contain = nil) ⇒ Padding
Returns a new instance of Padding.
8 9 10 11 |
# File 'lib/widget.rb', line 8 def initialize(t, r, b, l, contain=nil) @top, @right, @bottom, @left = t, r, b, l @container=contain end |
Instance Attribute Details
#bottom ⇒ Object
Returns the value of attribute bottom.
6 7 8 |
# File 'lib/widget.rb', line 6 def bottom @bottom end |
#container ⇒ Object
Returns the value of attribute container.
7 8 9 |
# File 'lib/widget.rb', line 7 def container @container end |
#left ⇒ Object
Returns the value of attribute left.
6 7 8 |
# File 'lib/widget.rb', line 6 def left @left end |
#right ⇒ Object
Returns the value of attribute right.
6 7 8 |
# File 'lib/widget.rb', line 6 def right @right end |
#top ⇒ Object
Returns the value of attribute top.
6 7 8 |
# File 'lib/widget.rb', line 6 def top @top end |