Class: Regex::Alternation

Inherits:
PolyadicExpression show all
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

#children

Attributes inherited from Expression

#begin_anchor, #end_anchor

Instance Method Summary collapse

Methods inherited from PolyadicExpression

#<<, #df_visitor

Methods inherited from CompoundExpression

#atomic?

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