Sha256: 5a82113baa961bf96e2a747543d7bf3bada17d09177a1c04dc9bde504e71e415
Contents?: true
Size: 313 Bytes
Versions: 5
Compression:
Stored size: 313 Bytes
Contents
# frozen_string_literal: true # NOTE remove once minimum required Ruby version is at least 2.6 Hash.prepend(Module.new do def merge *args (len = args.length) < 1 ? super({}) : (len > 1 ? args.inject(self) {|acc, arg| acc.merge arg } : (super args[0])) end end) if (Hash.instance_method :merge).arity == 1
Version data entries
5 entries across 5 versions & 1 rubygems