Class: Code::Parser::NotKeyword
- Defined in:
- lib/code/parser/not_keyword.rb
Instance Method Summary collapse
Instance Method Details
#not_class ⇒ Object
6 7 8 |
# File 'lib/code/parser/not_keyword.rb', line 6 def not_class NotKeyword end |
#not_keyword ⇒ Object
18 19 20 |
# File 'lib/code/parser/not_keyword.rb', line 18 def not_keyword str("not") << separator.present end |
#root ⇒ Object
22 23 24 25 26 |
# File 'lib/code/parser/not_keyword.rb', line 22 def root (not_keyword.aka(:operator) << whitespace << not_class.aka(:right)).aka( :not ) | Equal end |
#separator ⇒ Object
14 15 16 |
# File 'lib/code/parser/not_keyword.rb', line 14 def separator Name.new.separator end |
#whitespace ⇒ Object
10 11 12 |
# File 'lib/code/parser/not_keyword.rb', line 10 def whitespace Whitespace end |