Comment by Mladen Jablanović on How to elegantly rename all keys in a hash in Ruby? →
Just use mappings[k] || k instead of mappings[k] above and it will leave keys not in the mapping as is.
Just use mappings[k] || k instead of mappings[k] above and it will leave keys not in the mapping as is.