Module: Caffeinate::Dripper::Callbacks

Included in:
Base
Defined in:
lib/caffeinate/dripper/callbacks.rb

Overview

Callbacks for a Dripper.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object

:nodoc:



8
9
10
# File 'lib/caffeinate/dripper/callbacks.rb', line 8

def self.included(klass)
  klass.extend ClassMethods
end

Instance Method Details

#callbacks_for(name) ⇒ Object



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

def callbacks_for(name)
  self.class.callbacks_for(name)
end

#run_callbacks(name, *args) ⇒ Object



12
13
14
# File 'lib/caffeinate/dripper/callbacks.rb', line 12

def run_callbacks(name, *args)
  self.class.run_callbacks(name, *args)
end