IntelliJ IDEA 2017.3 Help

Ruby Language Support

This feature is only supported in the Ultimate edition.

The following is only valid when Ruby Plugin is installed and enabled!

Prerequisite

Ruby SDK should be downloaded and installed on your computer.
For the Windows platform, use the Ruby Installer and Development Kit.

Important notes

  • IntelliJ IDEA supports the following range of Ruby SDK versions:
    • 1.8.x
    • 1.9.x, with the lambda syntax, local variables semantics, new method parameters declarations, etc.
    • 2.0, with named arguments, Ruby 2.0 debugger, %i/%I syntax parsing, prepend support.
    • 2.1 and 2.2.
    • 2.3 with the following features:
      • ActionCable
      • Code completion, resolve and documentation include new additions to version 2.3, for example, Array:dig
      • Safe navigation operator, with the new Ruby intention actions Replace safe navigation with chained calls conjunction and Replace safe navigation with nested nil checks, and Ruby code inspection that suggests replacement of chained && checks to safe navigation operator usage.
      • squiggly HEREDOCS support
  • Language level is detected and derived from SDK.
  • Depending on your platform, you can use IronRuby, MacRuby, Rubinius, MRI Ruby, or JRuby.
  • IntelliJ IDEA supports cygwin as the Ruby interpreter platform.
Last modified: 6 March 2018

See Also