Sha256: eb580ff0bf1a5137ad8409e86bcba7ec9b6b15ac4112d198fc90a719e51b3894
Contents?: true
Size: 563 Bytes
Versions: 3
Compression:
Stored size: 563 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 refine ::String do include Method end def self.included(base) base.include Method end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
polyfill-0.6.0 | lib/polyfill/v2_4/string/instance/concat.rb |
polyfill-0.5.0 | lib/polyfill/v2_4/string/instance/concat.rb |
polyfill-0.4.0 | lib/polyfill/v2_4/string/instance/concat.rb |