Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'active_support/all'
- @store = ActiveSupport::HashWithIndifferentAccess.new
- def my_hash
- @store[:foo] ||= {bar: 'BAR'}
- end
- my_hash[:waldo] = 'WALDO'
- my_hash[:baz] = 'BAZ'
- my_hash[:qux] = 'QUX'
- puts my_hash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement