Sha256: d88aaeb607def0371b0551173196127b2f5543835956ed035754bda04111f424
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
module Polyfill module V2_4 module MatchData module ValuesAt module Method def values_at(*indexes) indexes.each_with_object([]) do |index, acc| acc.push(self[index]) end end if RUBY_VERSION < '2.4.0' end if RUBY_VERSION < '2.4.0' refine ::MatchData do include Method end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polyfill-0.2.0 | lib/polyfill/v2_4/match_data/values_at.rb |