Class: Regex::Alternation
- Inherits:
-
PolyadicExpression
- Object
- Expression
- CompoundExpression
- PolyadicExpression
- Regex::Alternation
- Defined in:
- lib/regex/alternation.rb
Overview
Abstract class. A n-ary matching operator. It succeeds when one child expression succeeds to match the subject text
Instance Attribute Summary
Attributes inherited from PolyadicExpression
Attributes inherited from Expression
Instance Method Summary collapse
-
#initialize(*theChildren) ⇒ Alternation
constructor
Constructor.
Methods inherited from PolyadicExpression
#<<, #df_visitor, #done!, #lazy!
Methods inherited from CompoundExpression
Methods inherited from Expression
Constructor Details
#initialize(*theChildren) ⇒ Alternation
Constructor.
12 13 14 |
# File 'lib/regex/alternation.rb', line 12 def initialize(*theChildren) super(theChildren) end |