react_on_rails/sig/README.md
This directory contains RBS (Ruby Signature) type definitions for the React on Rails gem.
RBS is Ruby's official type signature language. It provides type information for Ruby code, enabling:
The signatures are organized to mirror the lib/ directory structure:
react_on_rails.rbs - Main module and core classesreact_on_rails/configuration.rbs - Configuration class typesreact_on_rails/helper.rbs - View helper method signaturesreact_on_rails/server_rendering_pool.rbs - Server rendering typesreact_on_rails/utils.rbs - Utility method signaturesTo validate the RBS signatures:
bundle exec rake rbs:validate
Or directly:
bundle exec rbs -I sig validate
To list all RBS files:
bundle exec rake rbs:list
When adding new public methods or classes to the gem, please also add corresponding RBS signatures.
For more information about RBS: