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