Class: SimplePolygons::Line
Overview
Represents a line.
Instance Method Summary collapse
-
#initialize(start_loc, end_loc) ⇒ Line
constructor
A new instance of Line.
Methods inherited from Polygon
Constructor Details
#initialize(start_loc, end_loc) ⇒ Line
Returns a new instance of Line.
43 44 45 |
# File 'lib/simple-polygons.rb', line 43 def initialize(start_loc, end_loc) super([start_loc, end_loc]) end |