Class: PEG::And
- Inherits:
-
Sequence
- Object
- ValueObject
- Rule
- Sequence
- PEG::And
- 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
117 118 119 |
# File 'lib/peg.rb', line 117 def match(text) @children[0].match(text) ? result('') : nil end |