forgiving_nil 0.0.1
You can simply ask nil to forgive you: nil.forgive{real_object.might_be_nil.dont.care} #=> nil or the value of care
Gemfile:
=
Copy to clipboard
Copied!
install:
=
Development Dependencies (1):
rspec
~> 2.6