wpisz nowy hash ruby

Jest dziwny problem z nową składnią skrótu Ruby 1.9.2. Jak mogę umieścić dowolny obiekt jako klucz w skrócie w 1.9.2?

w hash 1.8.7 działa:

<code>a="b" 
{"a" => "some",a => "another value",:a => "3rd value"}
</code>

Ale w 1.9.2> Nie możemy (lub jak możemy, jeśli się mylę?)

1.9.2 skrót:

<code>{a: "some"} =>  {:a=>"s"} #it convert to old hash format
</code>

ale

<code>a="a" 
{a: "..."} # This doesn't work

{"a": "some value"} => syntax error, unexpected '}', expecting $end
from /home/naveed/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `<main>'

{1: "s"} =>

SyntaxError: (irb):11: syntax error, unexpected ':', expecting tASSOC {1: "s"}
</code>

questionAnswers(2)

yourAnswerToTheQuestion