> > Worksforme: > >>> class Bar >>> class <<self; def method_added(m) p m end end >>> def x() end >>> end > :x > => nil Well, but the question was about class methods, and you're defining an instance method.