Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/mongoid_spacial/spacial/core_ext.rb

Direct Known Subclasses

Mongoid::Spacial::GeoNearResults

Instance Method Summary collapse

Instance Method Details

#to_lng_latObject



2
3
4
# File 'lib/mongoid_spacial/spacial/core_ext.rb', line 2

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