Sha256: 3364d12fd43d2bd63107148709ea7a458d7fa72644b227133d3f28187270de21

Contents?: true

Size: 227 Bytes

Versions: 4

Compression:

Stored size: 227 Bytes

Contents

=begin rdoc
  Hash extentions
=end
class Hash
  def safe_merge(other_hash)
    merge(other_hash.delete_if {|k,v| has_key?(k) })
  end
  def safe_merge!(other_hash)
    merge!(other_hash.delete_if {|k,v| has_key?(k) })
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
auser-poolparty-0.0.8 lib/core/hash.rb
auser-poolparty-0.0.9 lib/core/hash.rb
auser-poolparty-0.1.0 lib/core/hash.rb
dreadpiratepj-poolparty-0.0.8 lib/core/hash.rb