Sha256: a6fbd1d67454901f667b0863a60346f7b86c4cf48d624b81b5f96dca80974ea1

Contents?: true

Size: 769 Bytes

Versions: 73

Compression:

Stored size: 769 Bytes

Contents

module Geokit
  module Adapters
    class Abstract
      class NotImplementedError < StandardError ; end
      
      cattr_accessor :loaded
      
      class << self
        def load(klass) ; end
      end
      
      def initialize(klass)
        @owner = klass
      end
      
      def method_missing(method, *args, &block)
        return @owner.send(method, *args, &block) if @owner.respond_to?(method)
        super
      end
      
      def sphere_distance_sql(lat, lng, multiplier)
        raise NotImplementedError, '#sphere_distance_sql is not implemented'
      end
      
      def flat_distance_sql(origin, lat_degree_units, lng_degree_units)
        raise NotImplementedError, '#flat_distance_sql is not implemented'
      end
      
    end
  end
end

Version data entries

73 entries across 73 versions & 12 rubygems

Version Path
earth-0.11.19 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.11.18 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.11.17 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.11.16 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.11.15 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.11.14 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
jackruss-geokit-rails3-0.1.5.1 lib/geokit-rails3/adapters/abstract.rb
earth-0.11.13 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.11.12 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.11.11 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.11.10 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.11.9 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.11.8 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
geokit-rails3-0.1.5 lib/geokit-rails3/adapters/abstract.rb
muck-profiles-3.1.4 test/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb
muck-profiles-3.1.3 test/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb
geokit-rails3-1beta-0.3.1.beta1 lib/geokit-rails3-1beta/adapters/abstract.rb
geokit-rails3-1beta-0.2.0.beta1 lib/geokit-rails3/adapters/abstract.rb
geokit-rails3-0.1.3 lib/geokit-rails3/adapters/abstract.rb
muck-profiles-3.0.2 test/rails_test/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb