Class: MatchData

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

Instance Method Summary collapse

Instance Method Details

#to_hashHash

Returns => “mathed-data”.

Returns:

  • (Hash)

    => “mathed-data”



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

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