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
Methods inherited from CompoundExpression
Methods inherited from Expression
#atomic?, #cardinality, #options, #to_str
Constructor Details
#initialize(*theChildren) ⇒ Alternation
Constructor.
10 11 12 |
# File 'lib/regex/alternation.rb', line 10 def initialize(*theChildren) super(theChildren) end |