Sha256: c08208dc83c2a52eaf157c6e533bf102f1b90b43854baeda10393d0f0ed9c909

Contents?: true

Size: 745 Bytes

Versions: 4

Compression:

Stored size: 745 Bytes

Contents

module Geokit
  VERSION = '1.3.2.7'
  # 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__))
$: <<  path unless $:.include?(path)
require 'geokit/geocoders'
require 'geokit/mappable'
require 'geokit/cached'

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
Pr0d1r2-geokit-1.3.2.7 lib/geokit.rb
Pr0d1r2-geokit-1.3.2.10 lib/geokit.rb
Pr0d1r2-geokit-1.3.2.9 lib/geokit.rb
Pr0d1r2-geokit-1.3.2.8 lib/geokit.rb