RDL
RDL: A Ruby gem combining annotation checks, flow tracking, and runtime contracts. Ranked #21 of 25 in Static Type Checkers by our editors (6.6/10); pricing: Open source; best for ruby teams needing rich annotation contracts.
At a glance
- Editor score6.6 / 10
- PricingOpen source
- Best forRuby teams needing rich annotation contracts
- Paid fromFree
- Supported languagesRuby
- Facts checked4 Dec 2026
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
Our verdict on RDL
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.
Your product? Our editors can test RDL in depth and publish a review, labelled as paid · from $149/mo →
RDL pricing
RDL fact sheet
| Free plan | Not verified |
|---|---|
| Paid from | Free |
| Supported languages | Ruby |
| Analysis scope | Not verified |
| IDE plugins | Not verified |
| CI/CD integration | Not verified |
| Incremental analysis | Not verified |
| Strictness controls | Yes |
| License model | Open_source |
| Deployment | Self-hosted |
| Support | Docs, Community |
| Built for | Solo, Small business (editorial estimate) |
| Integrations | 2 integrations: Ruby on Rails, Sequel |
| Pricing | Open source |
| Website | github.com |
| Facts checked | 4 Dec 2026 |
RDL integrations
RDL lists 2 integrations on its own site.
- Ruby on Rails
- Sequel
Alternatives to RDL
- TypeScriptA mature, free checker for TypeScript and JavaScript teams that need configurable strictness.9.4
- DialyzerChoose Dialyzer for inferred types and incremental checks in Erlang/OTP projects.9.2
- Hack typecheckerA free, open-source Hack checker with incremental analysis, IDE diagnostics and CI support.9.0
Used RDL? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used RDL for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
RDL is listed in our Static Type Checkers directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/rdl/"><img src="https://www.itechguides.com/best/badge/rdl.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Dec 2026
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