Class: MatchData
- Inherits:
-
Object
- Object
- MatchData
- Defined in:
- lib/core_ext/match_data.rb
Instance Method Summary collapse
Instance Method Details
#to_hash ⇒ Object
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 |