How would I refer to a hash using the value of a string - i.e.
#!/usr/bin/env ruby
foo = Hash.new
bar = "foo"
"#{bar}"["key"] = "value"
results in
foo:5:in `[]=': string not matched (IndexError)
from foo:5
How do I use the value of bar (foo) to reference the hash named foo? Thanks!