Chat with us, powered by LiveChat
INDIA +91 964 309 2571 | USA +1669 327 4700

“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...