Method: Paco::Combinators::Char#none_of
- Defined in:
- lib/paco/combinators/char.rb
#none_of(matcher) ⇒ Paco::Parser
Returns a parser that looks for exactly one character NOT from passed ‘matcher`, and returns its value on success.
80 81 82 |
# File 'lib/paco/combinators/char.rb', line 80 def none_of(matcher) satisfy("none_of(#{matcher})") { |char| !matcher.include?(char) } end |