From: John Wells Date: 2007-08-18T21:36:53+09:00 Subject: Emulating a Groovy feature? Guys, There's something called Safe Navigation in Groovy (http://groovy.codehaus.org/Statements#Statements-Safenavigation) that I find very appealing. So, Groovy will allow you to safely walk an object graph, even if that graph has nulls in it (the walk will short circuit): def foo = null def bar = foo?.something?.myMethod() assert bar == null Is there an easy way to hack an equivalent out in Ruby? Thanks, John