Class: Rectangle::Square

Inherits:
Rectangle show all
Defined in:
lib/rectangle.rb

Instance Method Summary collapse

Methods inherited from Rectangle

#==, #area, #perimeter

Constructor Details

#initialize(width) ⇒ Square

Returns a new instance of Square.



33
34
35
# File 'lib/rectangle.rb', line 33

def initialize width
  super width, width
end