Method: NanDoc::StreamColorizer::RuleList#add_regex_rule
- Defined in:
- lib/nandoc/support/stream-colorizer.rb
#add_regex_rule(re, opts) ⇒ Object
55 56 57 58 |
# File 'lib/nandoc/support/stream-colorizer.rb', line 55 def add_regex_rule re, opts fail("no") unless opts[:state] @rule_list.push RegexRule.make(re, opts[:state], {}) end |