Class: MatchData

Inherits:
Object show all
Defined in:
lib/epitools/core_ext/misc.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject

Return a hash of named matches



6
7
8
# File 'lib/epitools/core_ext/misc.rb', line 6

def to_hash
  Hash[ names.zip(captures) ]
end