Class: Taggata::Parser::Query

Inherits:
Object
  • Object
show all
Defined in:
lib/taggata/parser/query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dbObject (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