Sha256: 3c98c702702c4797e36923ff25a8aa338adf557829d54adda44cb8099101dbd0

Contents?: true

Size: 442 Bytes

Versions: 5

Compression:

Stored size: 442 Bytes

Contents

module GeoUnits
  module Maps
    module Meters
      def from_unit
        {
          :feet       => 0.3048,
          :meters     => 1,
          :kilometers => 1000,
          :miles      => 1609.344
        }
      end

      def to_unit
        {
         :feet        => 3.2808399,
         :meters      => 1,
         :kilometers  => 0.001,
         :miles       => 0.00062137
        }
      end

      extend self
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
geo_units-0.3.4 lib/geo_units/maps/meters.rb
geo_units-0.3.3 lib/geo_units/maps/meters.rb
geo_units-0.3.2 lib/geo_units/maps/meters.rb
geo_units-0.3.1.1 lib/geo_units/maps/meters.rb
geo_units-0.3.1 lib/geo_units/maps/meters.rb