Sorbet, the Ruby type checker, uses *.rbi files (Ruby interface files) to
provide optional type annotations without touching the source *.rb files. They
act similar to *.h files in C/C++ and *.d.ts files in TypeScript.
The syntax of RBI files is a subset of Ruby syntax, so ever line of an RBI file
is effectively a line of Ruby code.
Sorbet, the Ruby type checker, uses
*.rbi
files (Ruby interface files) to provide optional type annotations without touching the source*.rb
files. They act similar to*.h
files in C/C++ and*.d.ts
files in TypeScript.The syntax of RBI files is a subset of Ruby syntax, so ever line of an RBI file is effectively a line of Ruby code.