Ruby 1.8 -> 1.9 hash syntax regex
Used within vim for quick syntax upgrade. Could be used with grep or somesuch to grep an entire project.
%s/:\(\w*\) =>/\1:/gc
Written by Luke van der Hoeven
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#