module Garcon::Hookers::ClassMethods

Public Instance Methods

callbacks_for_hooker(name) click to toggle source
# File lib/garcon/utility/hookers.rb, line 42
def callbacks_for_hooker(name)
  _hookers[name]
end
define_hooker(*names)
Alias for: define_hookers
define_hookers(*names) click to toggle source
# File lib/garcon/utility/hookers.rb, line 28
def define_hookers(*names)
  options = extract_options!(names)
  names.each { |name| setup_hooker(name, options) }
end
Also aliased as: define_hooker
run_hooker(name, *args) click to toggle source
# File lib/garcon/utility/hookers.rb, line 34
def run_hooker(name, *args)
  run_hooker_for(name, self, *args)
end
run_hooker_for(name, scope, *args) click to toggle source
# File lib/garcon/utility/hookers.rb, line 38
def run_hooker_for(name, scope, *args)
  _hookers[name].run(scope, *args)
end