In article <200406151038.i5FAc5bk010477 / sharui.nakada.niregi.kanuma.tochigi.jp>, nobu.nokada / softhome.net wrote:
 
>   q = proc {:q}
>   foo = Object.new
>   class << foo; self; end.module_eval do
>     define_method(:bar,q)
>   end
>   p foo.bar # => :q

Thanks, cool!

-- 
Csaba

"There's more to life, than books, you know but not much more..."
[The Smiths]
***
If you want to send me a mail, see it in the mailto link at
http://www.renyi.hu/~ekho/egyelore.html