RDL review
A Ruby gem combining annotation checks, flow tracking, and runtime contracts.
Reviewed by iTechGuides Editors · Editorial team · Updated Dec 2026
RDL is an open-source Ruby gem for teams adding type annotations to existing Ruby code. It checks annotated method bodies against declared signatures while allowing unannotated methods to remain unchecked. Developers can run checks at method definition, invocation, or on demand for a labeled group of methods. The fit is strongest for solo developers and small Ruby teams that want contracts around selected methods rather than a language-wide migration.
Its type system covers union, intersection, structural, and generic annotations, and it tracks local-variable type changes after assignments within a method. Runtime wrapping can check method arguments and return values, while developer-defined preconditions and postconditions add contract enforcement during execution. The rdl_query command looks up signatures by method, class, or signature pattern, and signatures can include computations such as database column names and types. Integrations include Ruby on Rails and Sequel, with Rails support described as limited.
RDL is distributed as a self-hosted open-source gem rather than through paid plans, so adoption centers on integrating it into a team’s Ruby workflow and maintaining the execution environment. Its documented unit of analysis is the annotated method body, making selective enforcement a central design choice. Documentation focuses on Ruby 2.x and excludes versions 2.1.1 through 2.1.6. Choose RDL when Ruby signatures, flow tracking, runtime checks, and database-aware contracts matter; teams seeking broad multi-language checking, managed deployment, or newer-Ruby coverage should consider alternatives.
RDL pros and cons
- Where it wins
- Supports union, intersection, structural, and generic Ruby types
- Adds runtime argument, return-type, precondition, and postcondition checks
- Includes Rails, Sequel, and database-aware type-signature computations
- Where it doesn't
- Self-hosted deployment requires teams to manage their own environment
- Rails support is described as limited
- Documented support centers on Ruby 2.x, excluding versions 2.1.1 through 2.1.6
RDL fact sheet, pricing and score →
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update