class Rsec::OneOf
one of char in string
Public Instance Methods
_parse(ctx)
click to toggle source
# File lib/rsec/parsers/misc.rb, line 127 def _parse ctx return INVALID if ctx.eos? chr = ctx.getch if some().index(chr) chr else ctx.pos = ctx.pos - 1 INVALID end end