class Geoq::Commands::GeoHash::Point

Public Instance Methods

level() click to toggle source
# File lib/geoq/commands/geohash.rb, line 5
def level
  args.first.to_i
end
output() click to toggle source
# File lib/geoq/commands/geohash.rb, line 9
def output
  Enumerator.new do |e|
    instream.each do |entity|
      e << entity.gh_string(level)
    end
  end
end