Class: Query::Parser
- Defined in:
- lib/query/parser.rb,
lib/query/parser/key.rb,
lib/query/parser/part.rb,
lib/query/parser/group.rb,
lib/query/parser/query.rb,
lib/query/parser/range.rb,
lib/query/parser/value.rb,
lib/query/parser/number.rb,
lib/query/parser/string.rb,
lib/query/parser/boolean.rb,
lib/query/parser/special.rb,
lib/query/parser/operator.rb,
lib/query/parser/key_value.rb,
lib/query/parser/statement.rb,
lib/query/parser/whitespace.rb,
lib/query/parser/not_operator.rb,
lib/query/parser/logic_operator.rb
Defined Under Namespace
Classes: Boolean, Group, Key, KeyValue, LogicOperator, NotOperator, Number, Operator, Part, Query, Range, Special, Statement, String, Value, Whitespace
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(source) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(source) ⇒ Parser
Returns a new instance of Parser.
5 6 7 |
# File 'lib/query/parser.rb', line 5 def initialize(source) @source = source end |
Class Method Details
.parse ⇒ Object
9 10 11 |
# File 'lib/query/parser.rb', line 9 def self.parse(...) new(...).parse end |