From: David Gurba Date: 2004-10-30T19:08:02+09:00 Subject: reuse passed proc later? Hello Everyone, I'm new to Ruby and some of its features... I want to do the following (with as little modfication as necessary): call a passed block to a function at some later time... Eg. class A def foo(&block) @func = block end end a = A.new num = a.func.call { print "12" } ...but func is an unknown method, and attr_accessor :func doesn't help either.... any nice solution? David G. -- _______________________________________________ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10