Class: SimplePolygons::Square

Inherits:
Rectangle show all
Defined in:
lib/simple-polygons.rb

Overview

Represents a square.

Instance Method Summary collapse

Methods inherited from Polygon

#number_of_points

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