INDIA +91 882 616 7094 | USA +1 949 299 0280 | GERMANY +49 176 3465 1507 info@navyuginfo.com

“Maybe” Monad for Ruby

Let’s start with a problem every Ruby on Rails developer faces, handling ‘nil’ value – a tedious task. NoMethodError: undefined method `[]' for nil:NilClassy 4 spaces But there is a well-known design pattern to handle ‘nil’ value for Ruby in the more...