Class: LessCurse::Geometry::Rectangle
- Inherits:
-
Object
- Object
- LessCurse::Geometry::Rectangle
- Defined in:
- lib/less_curse/geometry.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
Returns the value of attribute position.
-
#size ⇒ Object
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(x, y, width, height) ⇒ Rectangle
constructor
A new instance of Rectangle.
Constructor Details
Instance Attribute Details
#position ⇒ Object
Returns the value of attribute position.
18 19 20 |
# File 'lib/less_curse/geometry.rb', line 18 def position @position end |
#size ⇒ Object
Returns the value of attribute size.
18 19 20 |
# File 'lib/less_curse/geometry.rb', line 18 def size @size end |