Class: JennCad::Move
- Inherits:
-
Transformation
- Object
- Transformation
- JennCad::Move
- Defined in:
- lib/jenncad/transformation/move.rb
Instance Attribute Summary
Attributes inherited from Transformation
Instance Method Summary collapse
- #coordinates ⇒ Object
-
#initialize(args) ⇒ Move
constructor
A new instance of Move.
Constructor Details
#initialize(args) ⇒ Move
Returns a new instance of Move.
4 5 6 7 |
# File 'lib/jenncad/transformation/move.rb', line 4 def initialize(args) pos = args[:pos] super(args.merge(pos: pos)) end |
Instance Method Details
#coordinates ⇒ Object
9 10 11 |
# File 'lib/jenncad/transformation/move.rb', line 9 def coordinates @pos.to_a end |