Class: Jets::Turbine

Inherits:
Object
  • Object
show all
Defined in:
lib/jets/turbine.rb

Class Method Summary collapse

Class Method Details

.exception_reporter(label, &block) ⇒ Object



25
26
27
# File 'lib/jets/turbine.rb', line 25

def exception_reporter(label, &block)
  on_exception(label, &block)
end

.inherited(base) ⇒ Object



11
12
13
# File 'lib/jets/turbine.rb', line 11

def inherited(base)
  subclasses << base
end

.initializer(label, &block) ⇒ Object



15
16
17
18
# File 'lib/jets/turbine.rb', line 15

def initializer(label, &block)
  self.initializers ||= {}
  self.initializers[label] = block
end

.on_exception(label, &block) ⇒ Object



20
21
22
23
# File 'lib/jets/turbine.rb', line 20

def on_exception(label, &block)
  self.on_exceptions ||= {}
  self.on_exceptions[label] = block
end

.subclassesObject



7
8
9
# File 'lib/jets/turbine.rb', line 7

def subclasses
  @subclasses ||= []
end