← Graph

RBS

tool 10 connections

Ruby's official type-signature system (`.rbs` files). Suggested by an audience member in the Testing Randomness Q&A as a way to keep a fake implementation's return types consistent with the real class's: if RBS signatures are integrated into RSpec, type mismatches between fake and production classes are caught automatically. Rodzik had not used RBS that way but found the idea interesting.

category
tool
about
RBS tool
Audience Q&A suggests RBS to keep fake and production class signatures aligned.
Follow-up audience suggestion to use RBS to keep real and fake signatures aligned.
Compared to Sorbet; RBS is closer to Ruby but harder to find examples for.
Briefly contrasted with Sorbet; RBS uses TracePoint for runtime checks.
Questioner notes RBS implements runtime checks on TracePoint.
Covered as the official Ruby type-signature language (no checker of its own).
References RBS's external type-file capability.
Proposes generating RBS-style types from production observation.
about
RBS tool
Mentioned alongside Sorbet as Ruby typing tooling that raises the automation threshold.
tool Steep
uses
RBS tool
Steep is a static type checker that consumes RBS type signatures.

Provenance

Read by
9 extractions