From: Eustaquio Rangel de Oliveira J Date: 2006-03-27T01:07:52+09:00 Subject: Re: Object methods > Erm, maybe you're searching for "instance_eval"? That's it! irb(main):001:0> s = "Testing!" => "Testing!" irb(main):002:0> s.instance_eval %q(def says() puts "s says:"+self end) => nil irb(main):003:0> s.says s says:Testing! Thanks, Patrick! I read about instance_eval some time ago and forgot completly about it! I knew there there was an easier way to do that without class_eval, but ... man, what a headache. :-) Thanks for the help guys. :-) Best regards, ---------------------------- Eust�quio "TaQ" Rangel eustaquiorangel@yahoo.com http://beam.to/taq Usu�rio GNU/Linux no. 224050