Class: NanDoc::Regexp
- Inherits:
-
Regexp
- Object
- Regexp
- NanDoc::Regexp
- Defined in:
- lib/nandoc/support/regexp.rb
Instance Method Summary collapse
-
#initialize(re, *names) ⇒ Regexp
constructor
A new instance of Regexp.
Constructor Details
#initialize(re, *names) ⇒ Regexp
Returns a new instance of Regexp.
5 6 7 8 9 10 |
# File 'lib/nandoc/support/regexp.rb', line 5 def initialize re, *names super(re) RegexpEnhance.to(self) do |me| me.names(*names) if names.any? end end |