Class: Atoyrobot::Commands::Place
- Defined in:
- lib/atoyrobot/commands/place.rb
Instance Method Summary collapse
- #execute(robot) ⇒ Object
-
#initialize(*args) ⇒ Place
constructor
A new instance of Place.
Methods inherited from Base
Constructor Details
Instance Method Details
#execute(robot) ⇒ Object
19 20 21 |
# File 'lib/atoyrobot/commands/place.rb', line 19 def execute(robot) robot.place(@location.x, @location.y, @location.facing) end |