This blends the readability of RBS with the static type safety of Sorbet — and it’s already helping improve code clarity at scale (Shopify has 99% of its 75k Ruby files type-checked 😲).
Now you can write type signatures in a much cleaner, more Ruby-like way:

It’s still experimental, but definitely worth keeping an eye on — especially if you’re looking to gradually introduce types into a large Ruby codebase.
🔧 Enable it with –enable-experimental-rbs-comments and explore the benefits.
Kudos to the team behind Ruby LSP, Tapioca, and Spoom for pushing the Ruby tooling ecosystem forward!
📘 RBS Support for Sorbet
Shopify introduces inline RBS comments for Sorbet, making Ruby type annotations more readable and maintainable. A great step forward for large-scale Ruby codebases using static typing.
👉 Read the original article