Advertisement
Guest User

Untitled

a guest
Feb 26th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.15 KB | None | 0 0
  1. module ExtendedHash
  2.   def reverse_merge(hash)
  3.     self.merge!(other_hash) { |key,left,right| left }
  4.   end
  5. end
  6.  
  7. class Hash
  8.    include ExtendedHash
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement