From: masa Date: 2010-12-31T19:32:16+09:00 Subject: Re: How to hook a callback through inheritance It may be too late but how about this? ---- class Lmao def initialize @str = "HAHAHAHAHAHHAHAHAH" end def laughing @str end =begin def self.inherited(base) base.extend(Callbacks) end =end end module Callbacks def before_laughing(*methods) define_method(:laughing) do methods.each do |m| send(m) end super end end end class Lol < Lmao extend Callbacks before_laughing :downcase_please def downcase_please @str.downcase! end end a = Lol.new p a.laughing ---- Masa