27 28 29 30 31 32 33 34 35 36 37
# File 'lib/nandoc/support/regexp-enhance.rb', line 27 def regexp_enhance_init @names ||= [] class << self alias_method :orig_match, :match def match str md = super MatchData.to(md, self) if md md end end end