In ruby 1.9 is there a way to define this hash with the new syntax?
irb> { a: 2 } => {:a=>2} irb> { a-b: 2 } SyntaxError: (irb):5: syntax erro
You can combine the old and new syntax:
{a: 1, b: 2, :'c-c' => 3, d: 4}