From: Robert Klemme Date: 2010-06-19T01:19:13+09:00 Subject: Re: shorthand 2010/6/14 Roger Pack : > I read this once: > > Operator ||= can be shorthand for code like: >  x = "(some fallback value)" unless respond_to? :x or x > > How would that look like exactly, in shorthand, any guesses? You can do this: x ||= (x() rescue "(some fallback value)") I did not think about this long enough to look at all the effects with local variables shadowing methods but it's something you can play with. :-) Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/