Class: Rsec::UntilPattern

Inherits:
Unary
  • Object
show all
Defined in:
lib/rsec/parsers/misc.rb

Overview

scan until the pattern<br/> for optimizing

Instance Attribute Summary

Attributes inherited from Unary

#some

Attributes included from Parser

#name

Instance Method Summary collapse

Methods included from Parser

#&, #*, #<<, #>>, #^, #cached, #eof, #fail, #inspect, #join, #map, #maybe, #parse, #parse!, #star, #|

Instance Method Details

#_parse(ctx) ⇒ Object



97
98
99
# File 'lib/rsec/parsers/misc.rb', line 97

def _parse ctx
  ctx.scan_until some() or INVALID
end