Class: LessCurse::Geometry::Size
- Inherits:
-
Object
- Object
- LessCurse::Geometry::Size
- Defined in:
- lib/less_curse/geometry.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(width, height) ⇒ Size
constructor
A new instance of Size.
Constructor Details
#initialize(width, height) ⇒ Size
Returns a new instance of Size.
12 13 14 |
# File 'lib/less_curse/geometry.rb', line 12 def initialize(width, height) @width, @height = width, height end |
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height.
11 12 13 |
# File 'lib/less_curse/geometry.rb', line 11 def height @height end |
#width ⇒ Object
Returns the value of attribute width.
11 12 13 |
# File 'lib/less_curse/geometry.rb', line 11 def width @width end |