Class: SimplePolygons::Square
- Defined in:
- lib/simple-polygons.rb
Overview
Represents a square.
Instance Method Summary collapse
-
#initialize(start_loc, side_length) ⇒ Square
constructor
Creates a new square with the specified boundaries.
Methods inherited from Polygon
Constructor Details
#initialize(start_loc, side_length) ⇒ Square
Creates a new square with the specified boundaries. start_loc should be a Location object and side_length should be a float.
59 60 61 |
# File 'lib/simple-polygons.rb', line 59 def initialize(start_loc, side_length) super(start_loc, side_length, side_length) end |