Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Where is Waldo?
require 'active_support/all'
@store =
def my_hash
@store[:foo] ||= {bar: 'BAR'}
my_hash[:waldo] = 'WALDO'
my_hash[:baz] = 'BAZ'
my_hash[:qux] = 'QUX'
puts my_hash
Copy link

yemartin commented Sep 2, 2015

The answer was given by Matt Jones on the rubyonrails-core mailing list:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment