How can I access variable by its name?
a = Hash.new
a["test"] = 9
some_method(:a) # => {"test" => 9}
How can I access variable by its name?
a = Hash.new
a["test"] = 9
some_method(:a) # => {"test" => 9}
a = Hash.new
a["test"] = 9
binding.local_variable_get(:a) # => {"test"=>9}