git clone 'git://github.com/purcell/ruby-hash-syntax.git'
Adapted from the method used by TextMate, this library provides
ruby-toggle-hash-syntax which attempts to automatically
convert the selected region of ruby code between 1.8 and 1.9 hash styles.
If you choose not to use one of the convenient packages in
Melpa and Marmalade, you'll need to add the
ruby-hash-syntax.el to your
load-path, and then
Add the following to your emacs init file:
Then select a block of ruby code containing a hash literal (perhaps
mark-sexp), and run the
You might like to bind that command to a key in
Steve Purcell's blog // @sanityinc on Twitter