module GuidedInteractor::Hooks::ClassMethods

Public Instance Methods

after(*hooks, &block) click to toggle source
# File lib/guided_interactor/hooks.rb, line 22
def after(*hooks, &block)
  hooks << block if block
  hooks.each { |hook| after_hooks.unshift(hook) }
end
after_hooks() click to toggle source
# File lib/guided_interactor/hooks.rb, line 35
def after_hooks
  @after_hooks ||= []
end
around(*hooks, &block) click to toggle source
# File lib/guided_interactor/hooks.rb, line 12
def around(*hooks, &block)
  hooks << block if block
  hooks.each { |hook| around_hooks.push(hook) }
end
around_hooks() click to toggle source
# File lib/guided_interactor/hooks.rb, line 27
def around_hooks
  @around_hooks ||= []
end
before(*hooks, &block) click to toggle source
# File lib/guided_interactor/hooks.rb, line 17
def before(*hooks, &block)
  hooks << block if block
  hooks.each { |hook| before_hooks.push(hook) }
end
before_hooks() click to toggle source
# File lib/guided_interactor/hooks.rb, line 31
def before_hooks
  @before_hooks ||= []
end