From: Charles Oliver Nutter Date: 2011-01-21T13:56:45+09:00 Subject: [ruby-core:34698] Re: Ruby operator equivalent to Groovy's "?." On Thu, Jan 20, 2011 at 7:01 PM, Jim Weirich wrote: > > On Jan 20, 2011, at 7:52 PM, Charles Oliver Nutter wrote: > >> This also short-circuits further calls...but it's pretty ugly :) > > Also doesn't work if a method returns a type other than self.class. Well, you'd mix this into Object or something if you wanted it globally... - Charlie