Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/mongoid_spacial/spacial/core_ext.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#to_lng_lat ⇒ Object
2 3 4 |
# File 'lib/mongoid_spacial/spacial/core_ext.rb', line 2 def to_lng_lat self[0..1].map(&:to_f) end |