Class: Geoq::Commands::Base
- Inherits:
-
Object
- Object
- Geoq::Commands::Base
- Defined in:
- lib/geoq/commands/base.rb
Direct Known Subclasses
GeoHash::Children, GeoHash::Neighbors, GeoHash::Point, GeoJson::FeatureCollection
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#global_opts ⇒ Object
readonly
Returns the value of attribute global_opts.
-
#instream ⇒ Object
readonly
Returns the value of attribute instream.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
-
#initialize(instream, global_opts = {}, opts = {}, args = []) ⇒ Base
constructor
A new instance of Base.
- #output ⇒ Object
Constructor Details
#initialize(instream, global_opts = {}, opts = {}, args = []) ⇒ Base
Returns a new instance of Base.
5 6 7 8 9 10 |
# File 'lib/geoq/commands/base.rb', line 5 def initialize(instream, global_opts = {}, opts = {}, args = []) @global_opts = global_opts @opts = opts @args = args @instream = instream end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
4 5 6 |
# File 'lib/geoq/commands/base.rb', line 4 def args @args end |
#global_opts ⇒ Object (readonly)
Returns the value of attribute global_opts.
4 5 6 |
# File 'lib/geoq/commands/base.rb', line 4 def global_opts @global_opts end |
#instream ⇒ Object (readonly)
Returns the value of attribute instream.
4 5 6 |
# File 'lib/geoq/commands/base.rb', line 4 def instream @instream end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
4 5 6 |
# File 'lib/geoq/commands/base.rb', line 4 def opts @opts end |
Instance Method Details
#output ⇒ Object
12 13 14 |
# File 'lib/geoq/commands/base.rb', line 12 def output raise "Not implemented" end |