Class: Geoptima::AfterLocatorAlgorithm

Inherits:
LocatorAlgorithm show all
Defined in:
lib/geoptima/locator.rb

Instance Method Summary collapse

Instance Method Details

#locate(locatable) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/geoptima/locator.rb', line 31

def locate(locatable)
  if locatable.next_point
    locatable.location = locatable.next_point
  else
    locatable.location = nil
  end
end