Class: Robot::Commands::Right
Constant Summary collapse
- RIGHT =
'RIGHT'
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.call(position) ⇒ Object
12 13 14 |
# File 'lib/robot/commands/right.rb', line 12 def self.call(position) position.right end |
.matches?(command) ⇒ Boolean
8 9 10 |
# File 'lib/robot/commands/right.rb', line 8 def self.matches?(command) command == RIGHT end |