Class: Potty::Layout::Rect
- Inherits:
-
Struct
- Object
- Struct
- Potty::Layout::Rect
- Defined in:
- lib/potty/layout.rb
Overview
Rectangle representing position and size
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height
7 8 9 |
# File 'lib/potty/layout.rb', line 7 def height @height end |
#width ⇒ Object
Returns the value of attribute width
7 8 9 |
# File 'lib/potty/layout.rb', line 7 def width @width end |
#x ⇒ Object
Returns the value of attribute x
7 8 9 |
# File 'lib/potty/layout.rb', line 7 def x @x end |
#y ⇒ Object
Returns the value of attribute y
7 8 9 |
# File 'lib/potty/layout.rb', line 7 def y @y end |
Instance Method Details
#to_s ⇒ Object
8 9 10 |
# File 'lib/potty/layout.rb', line 8 def to_s "Rect(x=#{x}, y=#{y}, w=#{width}, h=#{height})" end |