Class: Sketch::Builder::Polygon
- Defined in:
- lib/sketch/builder/polygon.rb
Constant Summary
Constants included from Geometry::DSL::Polyline
Geometry::DSL::Polyline::BuildError
Instance Method Summary collapse
-
#evaluate(&block) ⇒ Polygon
The Polygon resulting from evaluating the given block.
Methods inherited from Polyline
#first, #initialize, #last, #method_missing, #push
Methods included from Geometry::DSL::Polyline
#close, #closed?, #down, #horizontal_to, #left, #move_to, #move_x, #move_y, #right, #start_at, #up, #vertical_to
Constructor Details
This class inherits a constructor from Sketch::Builder::Polyline
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sketch::Builder::Polyline
Instance Method Details
#evaluate(&block) ⇒ Polygon
Returns the Sketch::Builder::Polygon resulting from evaluating the given block.
9 10 11 12 |
# File 'lib/sketch/builder/polygon.rb', line 9 def evaluate(&block) super Sketch::Polygon.new *@elements end |