If I had the following ruby hash:
environments = { \'testing\' => \'11.22.33.44\', \'production\' => \'55.66.77.88\' }
How wou
You would use brackets:
environments = { 'testing' => '11.22.33.44', 'production' => '55.66.77.88' } myString = 'testing' environments[myString] # => '11.22.33.44'