Sha256: 676f5b5a0800ed89547d4f0bc63d473db22a2ea0b76c971b192011f3f0a16cd4

Contents?: true

Size: 723 Bytes

Versions: 14

Compression:

Stored size: 723 Bytes

Contents

module Geokit
  VERSION = '1.5.0'
  # These defaults are used in Geokit::Mappable.distance_to and in acts_as_mappable
  @@default_units = :miles
  @@default_formula = :sphere

  [:default_units, :default_formula].each do |sym|
    class_eval <<-EOS, __FILE__, __LINE__
      def self.#{sym}
        if defined?(#{sym.to_s.upcase})
          #{sym.to_s.upcase}
        else
          @@#{sym}
        end
      end

      def self.#{sym}=(obj)
        @@#{sym} = obj
      end
    EOS
  end
end

path = File.expand_path(File.dirname(__FILE__))
$:.unshift path unless $:.include?(path)
require 'geokit/geocoders'
require 'geokit/mappable'

# make old-style module name "GeoKit" equivalent to new-style "Geokit"
GeoKit=Geokit

Version data entries

14 entries across 14 versions & 9 rubygems

Version Path
andre-geokit-1.5.0 lib/geokit.rb
loco2-geokit-0.0.1 lib/geokit.rb
geokit-with-google-premier-1.5.5 lib/geokit-with-google-premier.rb
geokit-with-google-premier-1.5.0 lib/geokit-with-google-premier.rb
geokit-with-premier-support-1.5.0 lib/geokit.rb
badnaam-geokit-1.5.1 lib/geokit.rb
badnaam-geokit-1.5.0 lib/geokit.rb
eugenebolshakov-geokit-1.5.1 lib/geokit.rb
darrell-geokit-1.5.0.4 lib/geokit.rb
darrell-geokit-1.5.0.2 lib/geokit.rb
darrell-geokit-1.5.0.1 lib/geokit.rb
ukstudio-geokit-1.5.1 lib/geokit.rb
eugenebolshakov-geokit-1.5.0 lib/geokit.rb
geokit-1.5.0 lib/geokit.rb