Class: PEG::And

Inherits:
Sequence show all
Defined in:
lib/peg.rb

Instance Attribute Summary

Attributes inherited from Rule

#children

Instance Method Summary collapse

Methods inherited from Sequence

#_inspect

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