Class: Savage::Directions::HorizontalTo
- Inherits:
-
CoordinateTarget
- Object
- Savage::Direction
- CoordinateTarget
- Savage::Directions::HorizontalTo
- Defined in:
- lib/savage/directions/horizontal_to.rb
Instance Attribute Summary
Attributes inherited from CoordinateTarget
Instance Method Summary collapse
Methods inherited from CoordinateTarget
Methods inherited from Savage::Direction
#absolute?, #initialize, #to_command
Methods included from Utils
Constructor Details
This class inherits a constructor from Savage::Directions::CoordinateTarget
Instance Method Details
#command_code ⇒ Object
4 5 6 |
# File 'lib/savage/directions/horizontal_to.rb', line 4 def command_code (absolute?) ? 'H' : 'h' end |