From: "ara.t.howard" Date: 2008-08-27T00:19:59+09:00 Subject: Re: Passing a block with define_method On Aug 26, 2008, at 9:12 AM, Emmanuel Oga wrote: > I think I saw this "trick" in one of Ara's posts :D > > * Store the method somewhere so it is not GC by ruby > * Retrieve the method object from its object_id with > ObjectSpace._id2ref > * use eval instead of define_method that's correct. you just need to store the data/block somewhere whcih won't be GC'd and pull it back using the id a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama