O'Reilly logo
  • Ronald Cosentino thinks this is interesting:

Sometimes you’ll see an alternate way of writing hashes. Instead of using the little hash rockets (=>), some people put the colons after the symbol names, which would make the our_heroes hash look like this:


Cover of Ruby Wizardry


hash rockets => or : between the key and value. either are right