KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Can I create a Ruby Hash from a block? Something like this (although this specifically isn't working): foo = Hash.new do |f| f[:apple] = "red" f[:orange] = "orange" f[:grape] = "purple" end
Tags (comma-separated)
Save Edits
Cancel