Re: Tattoo

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs