If you actually want types in Ruby, you should check out Sorbet: https://sorbet.org/
Reply on news.ycombinator.com