Re:Adopting Ruby 3 types with RBS
by dbalatero on Saturday December 26, 2020 @12:39AM
(#25541673)
As an alternative, Sorbet supports inline typing, separate files via .rbi (for typing external libs, etc), and I believe will support reading in .rbs files as well: https://sorbet.org/blog/2020/07/30/ruby-3-rbs-sorbet
It has some limitations (arguably good - it's harder to do shady metaprogramming if you want type safety) but I've found it very productive and useful in my large code base.
It has some limitations (arguably good - it's harder to do shady metaprogramming if you want type safety) but I've found it very productive and useful in my large code base.