From: "leonardo.pires@..." Date: 2006-03-31T12:18:45+09:00 Subject: class_eval and iterations Hello, I'm trying to write a code similar to the below: class Module def foo(*names) for name in names class_eval do define_method(name) do puts name end end end end end class Goo foo :a, :b, :c end I was expecting to bar = Goo.new bar.a prints 'a', bar.b prints 'b', and bar.c prints 'c'. But all methods prints 'c'. Why? Thanks!