From: Kenny Meyer Date: 2013-08-01T05:44:48+09:00 Subject: Method tracker - Need assistance --047d7b2e4228803c4c04e2d47363 Content-Type: text/plain; charset=UTF-8 I would like to write an includable method tracker, which logs about added methods to a class. module MethodTracker def self.method_added(method_name) puts "Tracking #{method_name}" end end class Factory include MethodTracker def build end end This is my code, however when the `Factory` class is defined there is no message shown. Can you give me a hint? Kenny Meyer I make Software. www.kennymeyer.net | +(595) 982 52 74 11 --047d7b2e4228803c4c04e2d47363 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I would like to write an includable method tracker, w= hich logs about added methods to a class.

mod= ule MethodTracker
=C2=A0 def self.method_added(method_name)
=
=C2=A0 =C2=A0 puts "Tracking #{method_name}"
=C2=A0 end=
end

class Factory
=C2=A0 incl= ude MethodTracker

=C2=A0 def build
=C2= =A0 end
end

This is my code, however when the `Factory` class is de= fined there is no message shown. Can you give me a hint?

Kenny Meyer

I make Software.
www.kennymeyer.net =C2=A0| =C2=A0+(595) 9= 82 52 74 11
--047d7b2e4228803c4c04e2d47363--