RBS

Last modified: 13 November 2022

RubyMine comes with the rbs gem bundled.

If you need a different RBS version, add the rbs gem to your Gemfile and install it to your project SDK.

RubyMine supports the RBS language to describe the types used in Ruby programs. RubyMine recognizes .rbs files and provides the following coding assistance:

RBS provides a set of built-in type signatures for the standard libraries out of the box. When you use RBS in your project, RubyMine displays its sources in external libraries.

RubyMine can also work with your rbs_collection.lock.yaml file. In this scenario, RubyMine will determine which type signatures will be loaded and used for code insight. For more details, see the documentation.