class Atoyrobot::Commands::Place
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/atoyrobot/commands/place.rb, line 14 def initialize(*args) super @location = Location.new(x, y, facing) end
Public Instance Methods
execute(robot)
click to toggle source
# File lib/atoyrobot/commands/place.rb, line 19 def execute(robot) robot.place(@location.x, @location.y, @location.facing) end