I've only tested it with ruby 1.9.3 (which ships with PE 3.0) and it works there. Ruby 1.8.7 reports the syntax error though :-(.