On Thu, Jun 26, 2008 at 4:27 PM, ara.t.howard <ara.t.howard / gmail.com> wrote:
>
> On Jun 26, 2008, at 4:39 AM, Robert Dober wrote:
>
>> def add_notfier notifier=nil
>>   @notifiers << ( Proc::new rescue notifier)
>> end
>
> still adds nil if no args given though...
>
>
> cheers.
>
> a @ http://codeforpeople.com/
> --
> we can deny everything, except that we have the possibility of being better.
> simply reflect on that.
> h.h. the 14th dalai lama
>
That is what OP wanted IIANM, the nils raise an exception later on.
Anyway I thought I had made it clear that your code is preferable but
I feel that teaching what Proc::new is about, is part of our job here
;)

Cheers
Robert