Class: Rrrex::OrMatch

Inherits:
Match
  • Object
show all
Includes:
CompositeMatch
Defined in:
lib/rrrex/or_match.rb

Instance Method Summary collapse

Methods included from CompositeMatch

#group_names, #initialize

Methods inherited from Match

#+, convert, #group_names, #match, #not, #or, #wrap

Instance Method Details

#to_regexp_stringObject



6
7
8
# File 'lib/rrrex/or_match.rb', line 6

def to_regexp_string
  wrap @atoms.map {|p| p.to_regexp_string }.join "|"
end