Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What tools are available for Ruby refactoring? [closed]

Are there any tools which support refactoring Ruby code (Rename method, Rename class, Extract method, Move method, ...)?

The best I know is RadRails 2, but Aptana 3 removed this tool.

Netbeans doesn't support Ruby on Rails anymore (it has community support)

Komodo just promises it

Is there any such tool available? Do you know any? Rubymine ?

No matter if it is a command line tool, a Standalone GUI tool or integrated with Development Environment.

Please avoid answers like "ruby is so good to refactor" or "tests are your best friend"

like image 956
David Avatar asked Oct 17 '11 13:10

David


People also ask

What is refactoring in Ruby on Rails?

Refactoring is the craft of improving the design of an existing code without changing its external behavior. Just like with everything else, you get better at it with practice and continuous learning.

How do you refactor in Visual Studio?

If you'd just like to see refactorings without Quick Fixes, you can use the Refactor command (Ctrl+Shift+R). Note: If you prefer to not see the Code Action lightbulb in your editor, you can disable lightbulbs with the editor.


4 Answers

RubyMine/IntelliJ does the best of what I use.

The Aptana product does some refactoring, but I'm not familiar with the latest iterations.

like image 55
Dave Newton Avatar answered Oct 23 '22 14:10

Dave Newton


vim-rails gives you partial extraction - and vim is pretty fast for copying stuff around too ;-)

like image 25
Reactormonk Avatar answered Oct 23 '22 14:10

Reactormonk


Netbeans devs don't support ruby anymore, but there are people who do.

like image 2
steenslag Avatar answered Oct 23 '22 14:10

steenslag


You can also use Vim for refactoring RoR applications using this vim plugin: https://github.com/sandeepravi/refactor-rails.vim

like image 2
sandeep Avatar answered Oct 23 '22 13:10

sandeep