← Graph

RBI

tool 4 connections

Sorbet's sidecar type-signature file format. RBI files look like normal Ruby but contain only method/constant declarations with `sig` signatures — no implementations. Used to (a) add types for untyped gems, (b) describe methods produced by metaprogramming, and (c) keep signatures out of hot implementation files (Erwin Kroon considers an RBI redefinition of `self` a clean workaround for `T.bind(self, …)`). Tapioca is the tool of choice for generating RBIs automatically.

category
tool
language
Ruby
Covers RBI sidecar files as an alternative to inline signatures.
Implicitly about RBI sidecar files as a cleaner placement for types.
tool RBI
related_to
Sorbet tool
RBI files are Sorbet's sidecar signature format.
tool Tapioca
related_to
RBI tool
Tapioca's primary output format is RBI.

Provenance

Read by
4 extractions