Sha256: 1a8bb8d8f737be01a3219d9c524cac1b2612d0958a930c65f634a48423b7a25c

Contents?: true

Size: 235 Bytes

Versions: 3

Compression:

Stored size: 235 Bytes

Contents

module Polyfill
  module V2_6
    module String
      def split(*)
        result = super

        if block_given?
          result.each(&::Proc.new)
          self
        else
          result
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
polyfill-1.9.0 lib/polyfill/v2_6/string.rb
polyfill-1.8.0 lib/polyfill/v2_6/string.rb
polyfill-1.7.0 lib/polyfill/v2_6/string.rb