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