Method: NanDoc::StreamColorizer::RuleList#add_regex_rule_neg

Defined in:
lib/nandoc/support/stream-colorizer.rb

#add_regex_rule_neg(re, opts) ⇒ Object



59
60
61
62
# File 'lib/nandoc/support/stream-colorizer.rb', line 59

def add_regex_rule_neg re, opts
  fail("no") unless opts[:state]
  @rule_list.push RegexRule.make(re, opts[:state], {:neg=>true})
end