Sha256: b6278e0f68cd9f749f1872a35e9a47c883d19e4e49cf8198f91d0d5af98c8586
Contents?: true
Size: 634 Bytes
Versions: 4
Compression:
Stored size: 634 Bytes
Contents
module Geokit VERSION = '1.2.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 require 'geokit/geocoders' require 'geokit/mappable' # make old-style module name "GeoKit" equivilent to new-style "Geokit" GeoKit=Geokit
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
andre-geokit-1.2.1 | lib/geokit.rb |
andre-geokit-1.2.2 | lib/geokit.rb |
andre-geokit-1.2.3 | lib/geokit.rb |
soey-geokit-1.2.4 | lib/geokit.rb |