What tools are available for Ruby refactoring? [closed]

自闭症网瘾萝莉.ら 提交于 2019-12-10 01:59:15

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!