Sha256: 678e7b7c32af62b69630152cca62cb7bb5f7e4c130b9bbccbf4c4e66510bc827

Contents?: true

Size: 234 Bytes

Versions: 3

Compression:

Stored size: 234 Bytes

Contents

class GeoDistance
  module Scale
    def * arg
      multiply arg
    end

    def / arg
      multiply(1.0/arg)
      self
    end

    def multiply arg
      check_numeric! arg
      self.distance *= arg
      self
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
geo-distance-0.2.2 lib/geo-distance/scale.rb
geo-distance-0.2.1 lib/geo-distance/scale.rb
geo-distance-0.2.0 lib/geo-distance/scale.rb