Class: Savage::SubPath
- Inherits:
-
Object
- Object
- Savage::SubPath
- Defined in:
- lib/monkeypatchsavage.rb
Instance Method Summary collapse
Instance Method Details
#toAbsolute(fp) ⇒ Object
87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/monkeypatchsavage.rb', line 87 def toAbsolute(fp) raise "Does not start with move command" unless @directions[0].kind_of? Savage::Directions::MoveTo @directions.each do |d| fp = d.toAbsolute(fp) end if closed? then return @directions[0].target.clone else return fp end end |