I recently discovered the nice ‘try()’ hack that chris@ozmm.org created.
It has some resemblance to my Array#to_proc - so I though that I would try to create an extended ‘try()’ :)
It works with “nested methods” and supports a default return value.



Add your comment