Method: MatchData#to_hash

Defined in:
lib/core_ext/match_data.rb

#to_hashObject



2
3
4
5
6
# File 'lib/core_ext/match_data.rb', line 2

def to_hash
  ret = Hash.new
  names.each { |k| ret[k.to_sym] = self[k] }
  return ret
end