From: gabriele renzi Date: 2004-10-02T02:24:59+09:00 Subject: Re: ruby-dev summary 24298-24353 trans. (T. Onoma) ha scritto: > In that case you might want this: > > # functor.rb > > class Functor > def initialize(&func) > @func = func > end > def method_missing(op, *args) > @func.call(op, *args) > end > end > > Shhh... Don't tell anyone. It's my favorite secret weapon ;) > Ok, I don't have an use for this, but, well, indeed very cool :)