module Cramp::Callbacks::ClassMethods
Public Instance Methods
before_start(*methods)
click to toggle source
# File lib/cramp/callbacks.rb, line 16 def before_start(*methods) self.before_start_callbacks += methods end
on_data(*methods)
click to toggle source
# File lib/cramp/callbacks.rb, line 28 def on_data(*methods) self.on_data_callbacks += methods end
on_finish(*methods)
click to toggle source
# File lib/cramp/callbacks.rb, line 20 def on_finish(*methods) self.on_finish_callbacks += methods end
on_start(*methods)
click to toggle source
# File lib/cramp/callbacks.rb, line 24 def on_start(*methods) self.on_start_callback += methods end