convert Ruby 1.9 style syntax