Joel VanderWerf
2/5/2006 5:09:00 AM
ara.t.howard@noaa.gov wrote:
> module_eval <<-def
> def test2 *args
> p [:test2, args, block_given?]
> end
> def
Or:
module_eval do
def test2 *args
p [:test2, args, block_given?]
end
end
if strings make you queasy.
But define_method won't define a method that takes a block until 1.9, IIRC.
--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407