Module: Cramp::Callbacks::ClassMethods

Defined in:
lib/cramp/callbacks.rb

Instance Method Summary collapse

Instance Method Details

#before_start(*methods) ⇒ Object



16
17
18
# File 'lib/cramp/callbacks.rb', line 16

def before_start(*methods)
  self.before_start_callbacks += methods
end

#on_data(*methods) ⇒ Object



28
29
30
# File 'lib/cramp/callbacks.rb', line 28

def on_data(*methods)
  self.on_data_callbacks += methods
end

#on_finish(*methods) ⇒ Object



20
21
22
# File 'lib/cramp/callbacks.rb', line 20

def on_finish(*methods)
  self.on_finish_callbacks += methods
end

#on_start(*methods) ⇒ Object



24
25
26
# File 'lib/cramp/callbacks.rb', line 24

def on_start(*methods)
  self.on_start_callback += methods
end