Atom Packages Directory

a package directory for a text editor of the 21st Century

Ruby Syntax Replacer by Mads Ohm Larsen

Install with:
    apm install ruby-syntax-replacer
  

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:

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

will become

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

It also does selection-wise replacements.

Keywords: ruby, replace, hash, syntax Suggest keywords
Fork me on GitHub