From: Rick DeNatale Date: 2010-05-18T22:38:35+09:00 Subject: Re: Dynamically adding methods to a class On Tue, May 18, 2010 at 9:13 AM, Sam Uel wrote: > puts fr.methods.include? "somefunc" > puts Fred.new.methods.include? "somefunc" > puts Fred.instance_methods.include? "somefunc" > > Gives the output: >>>false >>>false >>>false Really? I ran your Test.rb program in its entirety and got the following output: inside method_missing 1st time - called by the var fr 2nd time - called by the var fr 3rd time, this one's a new instance true true true -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Github: http://github.com/rubyredrick Twitter: @RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale