Class: NanDoc::Regexp

Inherits:
Regexp
  • Object
show all
Defined in:
lib/nandoc/support/regexp.rb

Instance Method Summary collapse

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