From: Josip Gracin Date: 2007-09-14T19:00:05+09:00 Subject: Re: How to define a function-generating function? Gaspard Bucher wrote: > Is this what you are looking for ? > class Module > def funky_define_method(*args, &block) > puts "#{args[0]} is being defined" > define_method(*args, &block) > end > end > > class Parrot > funky_define_method(:hello) do |msg, name| > printf(msg,name) > end > end Yes, exactly what I want! Thanks!