Method: TemplateExpander#finalize
- Defined in:
- lib/HDLRuby/template_expander.rb
#finalize ⇒ Object
Finalize the expander by building the default rule.
35 36 37 38 |
# File 'lib/HDLRuby/template_expander.rb', line 35 def finalize # @skip = Regexp.union(*@rules.map { |rule| rule.match }) @skip = /(?=#{Regexp.union(*@rules.map { |rule| rule.match }).source})|\z/ end |