Sha256: 78a37df828041a722cf74b105a98b7004b941b8c08810e476ffc2d6e633de1c7
Contents?: true
Size: 625 Bytes
Versions: 1
Compression:
Stored size: 625 Bytes
Contents
module Polyfill module V2_4 module String module Instance module Concat module Method def concat(*others) return super if others.length == 1 acc = '' << self others.each do |other| acc << other end replace(acc) end end if RUBY_VERSION < '2.4.0' refine ::String do include Method end def self.included(base) base.include Method end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polyfill-0.3.0 | lib/polyfill/v2_4/string/instance/concat.rb |