Class: MatchData

Inherits:
Object
  • Object
show all
Defined in:
lib/core_ext/match_data.rb

Instance Method Summary collapse

Instance Method Details

#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