On Wed, May 30, 2001 at 04:40:07PM +0900, Wayne Blair wrote:
> returnIfNotNil is the only one that jumps out at me.

Sorry, "module TryReturn" in original message was misleading.
But as you can see, I can not state my intentions. Here is
what that code should have looked like. My mistake, once again.

| module TryReturn
|   def tryreturn value
|     yield value if value
|   end  
| end
|
| tryreturn( getValue ) { |value| return value }

So, intention is "if that result is true, yield it to block
(which in this case returns it in calling context)".

-Jippo

-- 
 __________________________________________________________________
[   pub 1024/951AFAF5 1995/12/12   Juha Pohjalainen <jmp / iki.fi>   ]
[   fingerprint 41 56 7F F9 8E EC 16 35  BB 42 EF A7 DF 19 FA 31   ]
[__ http://www.iki.fi/jmp/ ________________ GSM +358 40 570 1179 __]