Hi, I'm trying to write a macro which defines methods. One of these should have a parameter, but I can't get that to work. Something like: define_method("printstuff") do puts "blabla" end works fine. But, how do I use define_method to create something like: def printstuff(the_stuff) puts the_stuff end Thanks in advance.
on 2005-12-15 14:51
on 2005-12-15 15:24
_______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails
on 2005-12-15 15:49
Jack Christensen wrote: > Is there something wrong with the forum-to-list gateway, or is your reply actually empty?
on 2005-12-15 19:22
On 12/15/05, Wiebe Cazemier <email@example.com> wrote: > Jack Christensen wrote: > > > > Is there something wrong with the forum-to-list gateway, or is your > reply actually empty? > > -- > Posted via http://www.ruby-forum.com/. Something must be wrong with the forum-to-list gateway, since I can see his relpy just fine. - Rowan