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