Created
December 26, 2014 14:17
-
-
Save imageaid/db072556a5512696f710 to your computer and use it in GitHub Desktop.
Using a Hash a Multimap
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
data = Hash.new { |hash, key| hash[key] = [] } | |
data[:description] = "Test" | |
data[:expression] = "catch_all()" | |
data[:action] << "stop()" | |
data[:action] << "store()" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pulled from HashNuke/mailgun#32 and user @dideler (https://github.com/dideler) so that I have it more readily available should I need it again.