Class: MatchData

Inherits:
Object show all
Defined in:
lib/tagen/core/re.rb

Instance Method Summary collapse

Instance Method Details

#to_hashHash

group-name regexp

Returns:

  • (Hash)

    => "mathed-data"



4
5
6
# File 'lib/tagen/core/re.rb', line 4

def to_hash
	Hash[names.map(&:to_sym).zip(captures)]
end