Sha256: 89a0158e8ff1f9d7f01167d3a0932c57eba30ab13a63d638dbef8b49304159c9

Contents?: true

Size: 145 Bytes

Versions: 20

Compression:

Stored size: 145 Bytes

Contents

class MatchData
	# group-name regexp
	# @return [Hash] {:name => "mathed-data"}
	def to_hash
		Hash[names.map(&:to_sym).zip(captures)]
	end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
tagen-1.1.7 lib/tagen/core/re.rb
tagen-1.1.6 lib/tagen/core/re.rb
tagen-1.1.5 lib/tagen/core/re.rb
tagen-1.1.4 lib/tagen/core/re.rb
tagen-1.1.3 lib/tagen/core/re.rb
tagen-1.1.2 lib/tagen/core/re.rb
tagen-1.1.1 lib/tagen/core/re.rb
tagen-1.1.0 lib/tagen/core/re.rb
tagen-1.0.4 lib/tagen/core/re.rb
tagen-1.0.3 lib/tagen/core/re.rb
tagen-1.0.2 lib/tagen/core/re.rb
tagen-1.0.1 lib/tagen/core/re.rb
tagen-1.0.0 lib/tagen/core/re.rb
tagen-0.2.5 lib/tagen/core/re.rb
tagen-0.2.4 lib/tagen/core/re.rb
tagen-0.2.3 lib/tagen/core/re.rb
tagen-0.2.1 lib/tagen/core/re.rb
tagen-0.2.0 lib/tagen/core/re.rb
tagen-0.1.1 lib/tagen/core/re.rb
tagen-0.1.0 lib/tagen/core/re.rb