Last Updated: May 23, 2016
· Minkihn

Hacky Type Hinting in Ruby

Type Hinting in Ruby

Here's how you can hack some type hinting in Ruby, if you're tired of validating each of your parameters by hand. It only involves a Ruby module and a bit of tinkering.


This is probably well under-optimized and could be improved in many ways, so please, feel free to leave a comment :-)