On Wed, Feb 2, 2011 at 11:49 AM, I=F1aki Baz Castillo <ibc / aliax.net> wrote=
:
> 2011/2/1 Robert Klemme <shortcutter / googlemail.com>:
>> You are aware that you can simplify that to
>>
>> exit SOMETHING
>>
>> are you?
>
> Yes, but I want to inspect the exit status code into the block
> provided to at_exit().

This is completely unrelated to how you _call_ exit.  I pointed out
that you can simplify

if SOMETHING
 exit true
else
 exit false
end

to

exit SOMETHING

or maybe this if you want to ensure the value is boolean

exit !!SOMETHING

Cheers

robert


--=20
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/