Last Updated: February 25, 2016
·
510
· amiel

Ruby 1.8 style hash -> Ruby 1.9 style hash

Here's a regex search-and-replace to switch to ruby 1.9 style hashes.

This worked for me in Sublime Text 2.

Find What: :(\w+) =>

Replace With: \1: