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
geokit-rails-2.5.0 lib/geokit-rails/adapters/abstract.rb
geokit-rails-2.3.2 lib/geokit-rails/adapters/abstract.rb
geokit-rails-2.3.1 lib/geokit-rails/adapters/abstract.rb
geokit-rails-2.3.0 lib/geokit-rails/adapters/abstract.rb
geokit-rails-2.2.0 lib/geokit-rails/adapters/abstract.rb
geokit-rails-2.1.0 lib/geokit-rails/adapters/abstract.rb
geokit-rails-2.0.1 lib/geokit-rails/adapters/abstract.rb
geokit-rails-2.0.0 lib/geokit-rails/adapters/abstract.rb
geokit-rails-2.0.0.rc1 lib/geokit-rails/adapters/abstract.rb
geokit-ar-0.0.1 lib/geokit-ar/adapters/abstract.rb
earth-1.0.3 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-1.0.2 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-1.0.1 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-1.0.0 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.12.4 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.12.3 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.12.2 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.12.1 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.12.0 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb
earth-0.11.20 vendor/geokit-rails/lib/geokit-rails/adapters/abstract.rb