Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/mongoid_location/location/core_ext.rb

Direct Known Subclasses

Mongoid::Location::GeoNearResults

Instance Method Summary collapse

Instance Method Details

#to_xyObject Also known as: to_lng_lat



2
3
4
# File 'lib/mongoid_location/location/core_ext.rb', line 2

def to_xy
  self[0..1].map(&:to_f)
end