module Hooks::ClassMethods

def callbacks_for_hook(name)

would run callbacks in the object _instance_ context, passing +self+ as block parameter.

end
instance_exec(self, &callback)
self.class.callbacks_for_hook(:after_eight).each do |callback|
def initialize

Example:

they should be executed in another context.
Returns the callbacks for +name+. Handy if you want to run the callbacks yourself, say when
def callbacks_for_hook(name)
  send("_#{name}_callbacks")
end