Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module ExtendedHash
- def reverse_merge(hash)
- self.merge!(other_hash) { |key,left,right| left }
- end
- end
- class Hash
- include ExtendedHash
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement