A RubyMine plugin that provides additional refactorings for the Ruby language, implemented using code intentions.
Some refactorings that are available when installing the plugin:
-
Replace singleton method by opening singleton class:
-
Remove unnecessary braces from hash argument:
-
Introduce string interpolation:
-
Convert single-quoted string to double-quoted string:
-
Replace conditional with guard clause:
-
Extract method object (a.k.a. Replace Function with Command):
-
Convert string/symbol word list (using
%w
/%i
syntax) to array (using[]
syntax): -
Split map/collect/each by introducing chained map:
-
Remove useless conditional statement
-
Move into conditional above
-
Use self-assignment