Class: Geoq::Commands::GeoHash::Neighbors
- Defined in:
- lib/geoq/commands/geohash.rb
Instance Attribute Summary
Attributes inherited from Base
#args, #global_opts, #instream, #opts
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Geoq::Commands::Base
Instance Method Details
#output ⇒ Object
31 32 33 34 35 36 37 38 39 |
# File 'lib/geoq/commands/geohash.rb', line 31 def output Enumerator.new do |e| instream.each do |entity| entity.gh_neighbors(opts[:inclusive]).each do |gh| e << gh end end end end |