Ok, it's not really better. There's a reason raganwald wrote andand the way he did. This will work better for you if you'd rather not think about a long method chain. Example: object.andand.method.method.garbage.methoddoesnotexist.foo.method #=> nil
Project
andand2
Unlike andand, andand2 can be placed at the start of a chain, not just where you anticipate nils.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Dependencies
Project Readme