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:
Written by Amiel Martin
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#