Sha256: 7674c9e73cc2e05f311b8b5a97d55a3a6069c0639fd0a2c7b9c85711a029c1f3

Contents?: true

Size: 266 Bytes

Versions: 6

Compression:

Stored size: 266 Bytes

Contents

class Hash
  unless method_defined?(:reverse_merge)
    def reverse_merge(other_hash)
      other_hash.merge(self)
    end
  end

  unless method_defined?(:reverse_merge!)
    def reverse_merge!(other_hash)
      replace(reverse_merge(other_hash))
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solusvm-2.0.1.beta6 lib/solusvm/hash.rb
solusvm-2.0.0.beta6 lib/solusvm/hash.rb
solusvm-2.0.0.beta5 lib/solusvm/hash.rb
solusvm-2.0.0.beta4 lib/solusvm/hash.rb
solusvm-2.0.0.beta2 lib/solusvm/hash.rb
solusvm-2.0.0.beta1 lib/solusvm/hash.rb