Class: PEG::Not
- Inherits:
-
Sequence
- Object
- ValueObject
- Rule
- Sequence
- PEG::Not
- Defined in:
- lib/peg.rb
Instance Attribute Summary
Attributes inherited from Rule
Instance Method Summary collapse
Methods inherited from Sequence
Methods inherited from Rule
#initialize, #inspect, #name, #parse, #result
Methods inherited from ValueObject
Constructor Details
This class inherits a constructor from PEG::Rule
Instance Method Details
#match(text) ⇒ Object
111 112 113 |
# File 'lib/peg.rb', line 111 def match(text) @children[0].match(text) ? nil : result('') end |