class Rsec::RepeatN

matches exactly n.abs times repeat<br/>

Public Instance Methods

_parse(ctx) click to toggle source
# File lib/rsec/parsers/repeat.rb, line 56
def _parse ctx
  n.times.inject([]) do |rp_node|
    res = base._parse ctx
    return INVALID if INVALID[res]
    rp_node.push res
  end
end