module Hooks::ClassMethods
def callbacks_for_hook(name)
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