ruby-syntax-replacer

Will replace all old Ruby hash syntax with new

Mads Ohm Larsen

9,713

10

0.5.1

MIT

GitHub

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.