Class: MatchData
Instance Method Summary collapse
-
#to_hash ⇒ Object
Return a hash of named matches.
Instance Method Details
#to_hash ⇒ Object
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 |