Re: Tattoo


#1

It it were my tatoo? The heart of the Functor definition:

class Functor
def initialize( &f ) ; @f = f ; end
def method_missing( op, *args, &blk )
@f.call( op, *args, &blk )
end
end

Have you done a search of Ruby one-liners?

T.