Bernhard 'elven' Stoeckner schrieb:
> Simon Kröger scribbled on Sunday 19 Mar 2006 12:21:
>>
>> you call() on a string rather than on the object.
> 
> Nah :)

Sorry, my fault.

[method(n) for n in m if method(n).arity == 0]

oops, wrong language :)

>> self.method(n).arity == 0 ? self.method(n) : nil
> Im putting in Method objects in the collect block.
> 
> Your version, however, looks nicer.

cheers

Simon