From: Ron Jeffries Date: 2001-12-23T09:56:53+09:00 Subject: [ruby-talk:29327] a better way? I was writing a little code that cached a function value, and wound up with this: 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? Thanks! Ronald E Jeffries http://www.XProgramming.com http://www.objectmentor.com