Replaces old Ruby syntax with new
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
keymaps
lib
menus
spec
.gitignore
LICENSE.md
README.md
package.json

README.md

Ruby-syntax-replacer package

When run (by pressing cmd+alt+x), will replace all old Ruby hash syntax in the current file with new, that is:

{
  :name     => 'Mads Ohm Larsen',
  :age      => '25',
  :position => 'Lead developer'
}

will become

{
  name:     'Mads Ohm Larsen',
  age:      '25',
  position: 'Lead developer'
}

It also does selection-wise replacements.