Module: Solid::Process::Callbacks::ClassMethods

Defined in:
lib/solid/process/callbacks.rb

Instance Method Summary collapse

Instance Method Details

#after_call(*filters, &block) ⇒ Object



22
23
24
# File 'lib/solid/process/callbacks.rb', line 22

def after_call(*filters, &block)
  set_callback(:call, :after, *filters, &block)
end

#after_failure(*filters, &block) ⇒ Object



30
31
32
# File 'lib/solid/process/callbacks.rb', line 30

def after_failure(*filters, &block)
  set_callback(:failure, :after, *filters, &block)
end

#after_success(*filters, &block) ⇒ Object



26
27
28
# File 'lib/solid/process/callbacks.rb', line 26

def after_success(*filters, &block)
  set_callback(:success, :after, *filters, &block)
end

#around_call(*filters, &block) ⇒ Object



18
19
20
# File 'lib/solid/process/callbacks.rb', line 18

def around_call(*filters, &block)
  set_callback(:call, :around, *filters, &block)
end

#before_call(*filters, &block) ⇒ Object



14
15
16
# File 'lib/solid/process/callbacks.rb', line 14

def before_call(*filters, &block)
  set_callback(:call, :before, *filters, &block)
end