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
muck-commerce-0.2.0 test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb
muck-commerce-0.1.9 test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb
muck-comments-0.1.20 test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb
muck-commerce-0.1.8 test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb
muck-comments-0.1.19 test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb
muck-profiles-0.2.1 test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb
muck-profiles-0.2.0 test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb
muck-activities-0.1.27 test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb
muck-activities-0.1.26 test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb
muck-comments-0.1.18 test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb
muck-friends-0.1.17 test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb
muck-profiles-0.1.18 test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb
muck-profiles-0.1.17 test/rails_root/vendor/plugins/geokit-rails/lib/geokit-rails/adapters/abstract.rb