Sha256: b88a4a5c80e84fffb9aa073b78f4376b0491b715b214d5f54b16c598b707540c
Contents?: true
Size: 506 Bytes
Versions: 1
Compression:
Stored size: 506 Bytes
Contents
module Polyfill module V2_4 module Array module Concat module Method def concat(*others) return super if others.length == 1 acc = [].concat(self) others.each do |other| acc.concat(other) end replace(acc) end if RUBY_VERSION < '2.4.0' end if RUBY_VERSION < '2.4.0' refine ::Array 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/array/concat.rb |