class Rsec::Pattern

matches a pattern

Public Instance Methods

_parse(ctx) click to toggle source
# File lib/rsec/parsers/misc.rb, line 89
def _parse ctx
  ctx.scan some() or INVALID
end
until(&p) click to toggle source

@ desc.r

Scan until the pattern happens
# File lib/rsec/helpers.rb, line 393
def until &p
  UntilPattern[some()].map p
end