Robe is a code assistance tool that uses a Ruby REPL subprocess with your application or gem code loaded, to provide information about loaded classes and modules, and where each method is defined.

Therefore it can be used to extend Emacs to an Ruby IDE with code completion.

  • Install the Robe package with emacs
  • Add this to your init.el or .emacs
(add-hook 'ruby-mode-hook 'robe-mode)
  • If you are using auto-complete or company-mode either add
(add-hook 'robe-mode-hook 'ac-robe-setup)

or

(push 'company-robe company-backends)
  • Start Emacs
  • M-x start-robe
  • Enjoy!