On Mar 29, 2014 8:52 AM, <nobu / ruby-lang.org> wrote:
>
> You can write simply for that case:
>
> ~~~ruby
> string = 'foo'
> {string => 'bar'}
> ~~~

You'd need

~~~ruby
{string.to_s => 'bar'}
~~~