Module: Rattler::Parsers::Combining

Included in:
Choice, DirectAction, DispatchAction, Label, ListParser, Predicate, Repeat, Sequence, Skip
Defined in:
lib/rattler/parsers/combining.rb

Instance Method Summary collapse

Instance Method Details

#capturing?Boolean

:nodoc:

Returns:

  • (Boolean)


12
13
14
# File 'lib/rattler/parsers/combining.rb', line 12

def capturing?
  @capturing ||= any? {|child| child.capturing? }
end

#with_ws(ws) ⇒ Object



16
17
18
# File 'lib/rattler/parsers/combining.rb', line 16

def with_ws(ws)
  self.class.new(children.map {|_| _.with_ws(ws) }, attrs)
end