问题
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"
回答1:
RubyMine/IntelliJ does the best of what I use.
The Aptana product does some refactoring, but I'm not familiar with the latest iterations.
回答2:
vim-rails gives you partial extraction - and vim is pretty fast for copying stuff around too ;-)
回答3:
Netbeans devs don't support ruby anymore, but there are people who do.
回答4:
You can also use Vim for refactoring RoR applications using this vim plugin: https://github.com/sandeepravi/refactor-rails.vim
来源:https://stackoverflow.com/questions/7794178/what-tools-are-available-for-ruby-refactoring