Class: Rectangle::Square
Instance Method Summary collapse
-
#initialize(width) ⇒ Square
constructor
A new instance of Square.
Methods inherited from Rectangle
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 |