Class: Taggata::Parser::Query
- Inherits:
-
Object
- Object
- Taggata::Parser::Query
- Defined in:
- lib/taggata/parser/query.rb
Instance Attribute Summary collapse
-
#db ⇒ Object
readonly
Returns the value of attribute db.
Instance Method Summary collapse
-
#initialize(db) ⇒ Query
constructor
A new instance of Query.
- #parse(query) ⇒ Object
Constructor Details
#initialize(db) ⇒ Query
Returns a new instance of Query.
7 8 9 |
# File 'lib/taggata/parser/query.rb', line 7 def initialize(db) @db = db end |
Instance Attribute Details
#db ⇒ Object (readonly)
Returns the value of attribute db.
5 6 7 |
# File 'lib/taggata/parser/query.rb', line 5 def db @db end |
Instance Method Details
#parse(query) ⇒ Object
11 12 13 |
# File 'lib/taggata/parser/query.rb', line 11 def parse(query) process(postfix(query)) end |