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 :-)
Written by Minkihn
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Gist
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#