class Rsec::OneOf_
one of char in string
Public Instance Methods
_parse(ctx)
click to toggle source
# File lib/rsec/parsers/misc.rb, line 141 def _parse ctx ctx.skip /\s*/ return INVALID if ctx.eos? chr = ctx.getch unless some().index(chr) return INVALID end ctx.skip /\s*/ chr end