Class: Query::Parser::Boolean
- Defined in:
- lib/query/parser/boolean.rb
Instance Method Summary collapse
Instance Method Details
#root ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/query/parser/boolean.rb', line 6 def root ( ( str("true") | str("t") | str("True") | str("TRUE") | str("T") | str("yes") | str("y") | str("Yes") | str("YES") | str("Y") | str("on") | str("On") | str("ON") str("false") | str("f") | str("False") | str("FALSE") | str("F") | str("no") | str("n") | str("No") | str("NO") | str("N") | str("off") | str("Off") | str("OFF") ) << Special.present ).aka(:boolean) end |