class MatchData
Public Instance Methods
to_hash()
click to toggle source
Return a hash of named matches
# File lib/epitools/core_ext/misc.rb, line 6 def to_hash Hash[ names.zip(captures) ] end
Return a hash of named matches
# File lib/epitools/core_ext/misc.rb, line 6 def to_hash Hash[ names.zip(captures) ] end