Module: WellFormed::Performer::ClassMethods

Defined in:
lib/well_formed/performer.rb

Instance Method Summary collapse

Instance Method Details

#after_perform(*args, &block) ⇒ Object



25
26
27
# File 'lib/well_formed/performer.rb', line 25

def after_perform(*args, &block)
  set_callback(:perform, :after, *args, &block)
end

#before_perform(*args, &block) ⇒ Object



21
22
23
# File 'lib/well_formed/performer.rb', line 21

def before_perform(*args, &block)
  set_callback(:perform, :before, *args, &block)
end

#inherited(subclass) ⇒ Object



29
30
31
32
# File 'lib/well_formed/performer.rb', line 29

def inherited(subclass)
  super
  subclass.prepend(Abstract)
end