Rdefs是一个小型Ruby脚本,它从给定的Ruby源代码中提取类、模块、方法和属性定义。
与Emacs一起使用Rdefs
您可能需要将etc/rdefs.el放入您的elisp目录,并在dot.emacs中添加以下内容:
(require 'rvm)
(rvm-use-default)
(require 'rdefs)
希望这能有所帮助...但无论如何,目前似乎没有其他选择。
您还可以尝试查看Rsense的状态:
RSense is a Ruby development tools, which is specialized for high function text editors such as Emacs, Vim, etc. Following UNIX philosophy, RSense has a high transparency and is easy to learn, extend and fix for users. Adopting copyleft license, it also keeps being a free software.
In the future, the following features will be available:
Static code checking Caller jump Refactoring
但是这个项目的github页面已经一年没有任何活动了(新版本 2.0 的分支)。
也许你可以试着联系作者...
有一个名为ruby-refactor的项目最近有更新。它可以通过MELPA安装。它受到了Vim插件vim-refactoring-ruby
的启发。在我第一次使用印象中,它似乎运行良好。