From: Massimiliano Mirra Date: 2001-12-23T10:16:54+09:00 Subject: [ruby-talk:29330] Re: a better way? On Sun, Dec 23, 2001 at 09:56:53AM +0900, Ron Jeffries wrote: > result = @@save[self] > return result if result > > I don't see a way to do it in one line unless I'm willing to do the > lookup twice. Am I missing something? What about this? (result = @@save[self]) and return result HTH Massimiliano