Class: Geoptima::BeforeLocatorAlgorithm
- Inherits:
-
LocatorAlgorithm
- Object
- LocatorAlgorithm
- Geoptima::BeforeLocatorAlgorithm
- Defined in:
- lib/geoptima/locator.rb
Instance Method Summary collapse
Instance Method Details
#locate(locatable) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/geoptima/locator.rb', line 22 def locate(locatable) if locatable.previous_point locatable.location = locatable.previous_point else locatable.location = nil end end |