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