module Polyfill::V2_4::MatchData
Public Instance Methods
named_captures()
click to toggle source
# File lib/polyfill/v2_4/match_data.rb, line 4 def named_captures names.each_with_object({}) do |name, acc| acc[name] = self[name] end end
values_at(*indexes)
click to toggle source
# File lib/polyfill/v2_4/match_data.rb, line 10 def values_at(*indexes) indexes.each_with_object([]) do |index, acc| acc.push(self[index]) end end