Forum: Ruby Re: Tattoo

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
45196398e9685000d195ec626d477f0e?d=identicon&s=25 TRANS (Guest)
on 2006-04-17 21:50
(Received via mailing list)
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 topic is locked and can not be replied to.