Sha256: ad8e0c77e434cf43c59c2ba9a45a07981dab9bcfcd9f5913213e4285e64e5005
Contents?: true
Size: 376 Bytes
Versions: 14
Compression:
Stored size: 376 Bytes
Contents
# frozen_string_literal: true RubyNext::Core.patch Hash, method: :merge, version: "2.6", supported: {}.method(:merge).arity < 0, core_ext: :prepend do <<~RUBY def merge(*others) return super if others.size == 1 return dup if others.size == 0 merge(others.shift).tap do |new_h| others.each { |h| new_h.merge!(h) } end end RUBY end
Version data entries
14 entries across 14 versions & 2 rubygems