Class: LessCurse::Geometry::Size

Inherits:
Object
  • Object
show all
Defined in:
lib/less_curse/geometry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#heightObject

Returns the value of attribute height.



11
12
13
# File 'lib/less_curse/geometry.rb', line 11

def height
  @height
end

#widthObject

Returns the value of attribute width.



11
12
13
# File 'lib/less_curse/geometry.rb', line 11

def width
  @width
end