Module: Anchor::Hooks::DSL::HookTypes

Included in:
ClassMethods
Defined in:
lib/anchor/hooks.rb

Instance Method Summary collapse

Instance Method Details

#after(*methods, &block) ⇒ Object



20
# File 'lib/anchor/hooks.rb', line 20

def after(*methods, &block);    add_hook(:after, *methods, &block);  end

#around(*methods, &block) ⇒ Object



21
# File 'lib/anchor/hooks.rb', line 21

def around(*methods, &block);   add_hook(:around, *methods, &block); end

#before(*methods, &block) ⇒ Object



19
# File 'lib/anchor/hooks.rb', line 19

def before(*methods, &block);   add_hook(:before, *methods, &block); end