Sha256: 85851aad1a1be3af7951c4f90497a04e40f7a15a8a588e510d59a138d29b4d75
Contents?: true
Size: 721 Bytes
Versions: 2
Compression:
Stored size: 721 Bytes
Contents
module Geokit # 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' require 'openssl' # make old-style module name "GeoKit" equivalent to new-style "Geokit" GeoKit=Geokit
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
geokit-premier-0.1.0 | lib/geokit.rb |
geokit-premier-0.0.7 | lib/geokit.rb |