Sha256: 758043e3f146a7d26e0af1e9b31889f78bf4163aa6a1e10d192d68c247682ac8
Contents?: true
Size: 744 Bytes
Versions: 12
Compression:
Stored size: 744 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/core_ext' require 'geokit/geocoders' require 'geokit/mappable' require 'geokit/bounds' require 'geokit/lat_lng' require 'geokit/geo_loc' require 'geokit/polygon'
Version data entries
12 entries across 12 versions & 1 rubygems