module Prong::InstanceMethods

Public Instance Methods

run_hooks(name,type = 'all', return_all = false, &block) click to toggle source
# File lib/prong/instance_methods.rb, line 3
def run_hooks(name,type = 'all', return_all = false, &block)
  return Hooks::Executer::Falsey.without_return_all(self,name,type,&block) unless return_all
  return Hooks::Executer::Falsey.with_return_all(self,name,type,&block)
end
run_hooks!(name,type = 'all', return_all = false, &block) click to toggle source
# File lib/prong/instance_methods.rb, line 8
def run_hooks!(name,type = 'all', return_all = false, &block)
  return Hooks::Executer.without_return_all(self,name,type,&block) unless return_all
  return Hooks::Executer.with_return_all(self,name,type,&block)
end