Sha256: e4fca938d3f07a8dcdf0ab0a4bdf9979d8e78afcbd61a5f94195b3e355d5d9cb
Contents?: true
Size: 719 Bytes
Versions: 2
Compression:
Stored size: 719 Bytes
Contents
module Geokit VERSION = '1.3.2' # 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' # make old-style module name "GeoKit" equivalent to new-style "Geokit" GeoKit=Geokit
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
andre-geokit-1.3.2 | lib/geokit.rb |
geokit-1.3.2 | lib/geokit.rb |