Module: Rrrex::CompositeMatch

Included in:
ConcatMatch, OrMatch
Defined in:
lib/rrrex/composite_match.rb

Instance Method Summary collapse

Instance Method Details

#group_namesObject



10
11
12
13
14
# File 'lib/rrrex/composite_match.rb', line 10

def group_names
  @atoms.inject( [] ) do |memo,a|
    memo + a.group_names
  end
end

#initialize(*args) ⇒ Object



4
5
6
7
8
# File 'lib/rrrex/composite_match.rb', line 4

def initialize(*args)
  @atoms = args.collect do |a|
    input a
  end
end