Created
December 27, 2012 08:56
-
-
Save YoshitsuguFujii/4386691 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ExtendBuiltInDataType | |
class ::Hash | |
def merge_apend_value(hash) #{{{ | |
self.update(hash) do |key, self_val, other_val| | |
Array.wrap(self_val).push(other_val) | |
end | |
end #}}} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment