Created
April 29, 2015 09:38
-
-
Save tomajask/ecf3802912f94dc2320d 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
fields = %w(foo bar baz) | |
fields.each_with_object({}) do |field, memo| | |
memo[field] = rand(1000) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment