Class: Savage::Directions::ClosePath
- Inherits:
-
Savage::Direction
- Object
- Savage::Direction
- Savage::Directions::ClosePath
- Defined in:
- lib/savage/directions/close_path.rb
Instance Method Summary collapse
- #command_code ⇒ Object
-
#initialize(absolute = true) ⇒ ClosePath
constructor
A new instance of ClosePath.
- #to_a ⇒ Object
Methods inherited from Savage::Direction
Methods included from Utils
Constructor Details
#initialize(absolute = true) ⇒ ClosePath
Returns a new instance of ClosePath.
5 6 7 |
# File 'lib/savage/directions/close_path.rb', line 5 def initialize(absolute=true) super(absolute) end |
Instance Method Details
#command_code ⇒ Object
13 14 15 |
# File 'lib/savage/directions/close_path.rb', line 13 def command_code (absolute?) ? 'Z' : 'z' end |
#to_a ⇒ Object
9 10 11 |
# File 'lib/savage/directions/close_path.rb', line 9 def to_a [command_code] end |