Module: Cramp::Callbacks::ClassMethods
- Defined in:
- lib/cramp/callbacks.rb
Instance Method Summary collapse
- #before_start(*methods) ⇒ Object
- #on_data(*methods) ⇒ Object
- #on_finish(*methods) ⇒ Object
- #on_start(*methods) ⇒ Object
Instance Method Details
#before_start(*methods) ⇒ Object
17 18 19 |
# File 'lib/cramp/callbacks.rb', line 17 def before_start(*methods) self.before_start_callbacks += methods end |
#on_data(*methods) ⇒ Object
29 30 31 |
# File 'lib/cramp/callbacks.rb', line 29 def on_data(*methods) self.on_data_callbacks += methods end |
#on_finish(*methods) ⇒ Object
21 22 23 |
# File 'lib/cramp/callbacks.rb', line 21 def on_finish(*methods) self.on_finish_callbacks += methods end |
#on_start(*methods) ⇒ Object
25 26 27 |
# File 'lib/cramp/callbacks.rb', line 25 def on_start(*methods) self.on_start_callback += methods end |