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"
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.
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.
RubyMine/IntelliJ does the best of what I use.
The Aptana product does some refactoring, but I'm not familiar with the latest iterations.
vim-rails gives you partial extraction - and vim is pretty fast for copying stuff around too ;-)
Netbeans devs don't support ruby anymore, but there are people who do.
You can also use Vim for refactoring RoR applications using this vim plugin: https://github.com/sandeepravi/refactor-rails.vim
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With