Jim Weirich wrote:
> On Thursday 10 February 2005 12:37 am, John W. Long wrote:
>>       def __add__(f)
> 
> I'm almost certain you meant to say:
>    def +(f)

Actually no. I used __add__(f) along this in method_missing:

 >         when symbol == :+
 >            __add__(*args)

Because I wanted people to be able to define their own behavior for plus:

f = functor (:+) { |value| 1 + value }

puts f + 1

--
John Long
http://wiseheartdesign.com