class Hash

Public Instance Methods

rekey(h) click to toggle source
# File lib/humanized_full_messages/hash.rb, line 2
def rekey(h)
  dup.rekey! h
end
rekey!(h) click to toggle source
# File lib/humanized_full_messages/hash.rb, line 6
def rekey!(h)
  h.each { |k, newk| store(newk, delete(k)) if has_key? k }
  self
end