lib/rafini/hash.rb
# hash0.amend(hash1,...)
#
# Ammends hash with hashes.
# Overwrites existing keys only with first key value found in amending hashes.
#   {a:'A',b:'B'}.amend({b:'X',c:'C'},{c:'Y',d:'D'}) #=> {a:'A',b:'X'}
hash0.amend(hash1,...)
Ammends hash with hashes.
Overwrites existing keys only with first key value found in amending hashes.
hash0 . amend ( hash1 ... ) Ammends hash with hashes . Overwrites existing keys only with first key value found in amending hashes .
def amend!(*hashes)
        self.each_key do |key|
          value=hashes.find{_1.has_key? key}&.fetch(key) and self[key]=value
        end
        self
      end
def amend! ( * hashes ) self . each_key do | key | value = hashes . find { _1 . has_key? key } &. fetch ( key ) and self [ key ] = value end self end
hash0.amend(hash1,...)
Ammends hash with hashes.
hash0 . amend ( hash1 ... ) Ammends hash with hashes .
hashes
<not_specific>