some_obj.big.long.chain.of.methods.that.breaks.because.of.a.nil
# => Exception, nil or the result of the last method call
!some_obj.big.nil? && !some_obj.big.long.nil? && !some_obj.big.long.chain.nil? && !some_obj.big.long.chain.of.nil? #.....................
# => lame
nil.forgive { some_obj.big.long.chain.of.methods.that.breaks.because.of.a.nil }
# => nil, or the result of the last method callProject
forgiving_nil
Forgiving Nil lets you forget about nil exceptions conveniently and temporarily when required
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Development
Dependencies
Development
~> 2.6
Project Readme