I\'m just breaking into the ruby world and I could use a helping hand.
Suppose b is nil.
b
nil
I\'d like the following code to return n
n
I think you can find a great solution in rails but that solution follows a different approach. Take a look at the try method. It's a clean approach.