Class: Code::Parser::Negation
- Defined in:
- lib/code/parser/negation.rb
Instance Method Summary collapse
- #exclamation_point ⇒ Object
- #negation ⇒ Object
- #operator ⇒ Object
- #plus ⇒ Object
- #root ⇒ Object
- #tilde ⇒ Object
Instance Method Details
#exclamation_point ⇒ Object
6 7 8 |
# File 'lib/code/parser/negation.rb', line 6 def exclamation_point str("!") end |
#operator ⇒ Object
18 19 20 |
# File 'lib/code/parser/negation.rb', line 18 def operator exclamation_point | tilde | plus end |
#plus ⇒ Object
14 15 16 |
# File 'lib/code/parser/negation.rb', line 14 def plus str("+") end |
#root ⇒ Object
26 27 28 29 |
# File 'lib/code/parser/negation.rb', line 26 def root (operator.aka(:operator) << negation.aka(:right)).aka(:negation) | ChainedCall end |
#tilde ⇒ Object
10 11 12 |
# File 'lib/code/parser/negation.rb', line 10 def tilde str("~") end |