• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

ruby-syntax-replacer

Will replace all old Ruby hash syntax with new
  • #ruby
  • #replace
  • #hash
  • #syntax
omegahm
0.5.1 9,378
10
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

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.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by