Class: VectorSalad::StandardShapes::Flip
- Inherits:
-
Transform
- Object
- Transform
- VectorSalad::StandardShapes::Flip
- Defined in:
- lib/vector_salad/standard_shapes/flip.rb
Overview
Flip the contained shapes.
Instance Method Summary (collapse)
-
- (Any) initialize(axis, canvas:, **_options, &block)
constructor
Flip the contained shapes on the specified axis.
Constructor Details
- (Any) initialize(axis, canvas:, **_options, &block)
Flip the contained shapes on the specified axis.
22 23 24 25 26 27 28 |
# File 'lib/vector_salad/standard_shapes/flip.rb', line 22 def initialize(axis, canvas:, **, &block) instance_eval(&block) # inner_canvas is populated @canvas.each do |shape| canvas << shape.flip(axis) end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class VectorSalad::DSL