Ruby, Hashrockets and UTF-8

Posted on Leave a commentPosted in Ruby

Image is property of PeepCode. The years with the hashrocket syntax (=>) are over, Ruby has switched to the defacto standard which is used by JavaScript, Groovy and other script languages. In Ruby 1.8 you needed to define a map like this: my_map = {:ilike => ‘apples’, :and => ‘pears’} which you can write in […]