Class: Query::Parser::LogicOperator
- Defined in:
- lib/query/parser/logic_operator.rb
Instance Method Summary collapse
Instance Method Details
#root ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/query/parser/logic_operator.rb', line 6 def root ( Whitespace << ( str("and") | str("And") | str("AND") | str("or") | str("Or") | str("OR") ) << Whitespace ) | ( Whitespace.maybe << ( str("&&") | str("&") | str("||") | str("|") | str("") ) << Whitespace.maybe ) end |