From: James Coglan Date: 2008-08-27T00:03:26+09:00 Subject: Re: Passing a block with define_method ------=_Part_4455_7331921.1219763272337 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > module_eval a string. I'm actually wrapping existing methods so I need to use define_method to retain access to the old method. Here's my (broken) code so far: module Continuations def accepts_continuation(*args) args.each do |method_name| func = instance_method(method_name) define_method(method_name) do |*params, &block| value = func.bind(self).call(*params) end end end end ------=_Part_4455_7331921.1219763272337--