Module: Braai::Handlers

Defined in:
lib/braai/handlers.rb,
lib/braai/handlers/base.rb,
lib/braai/handlers/default.rb,
lib/braai/handlers/iteration.rb,
lib/braai/handlers/conditional.rb

Defined Under Namespace

Classes: Base, Conditional, Default, Iteration

Class Method Summary collapse

Class Method Details

.rescue_from(klass, handler) ⇒ Object



10
11
12
# File 'lib/braai/handlers.rb', line 10

def rescue_from(klass, handler)
  self.rescuers.unshift({klass: klass, handler: handler})
end

.rescuersObject



14
15
16
# File 'lib/braai/handlers.rb', line 14

def rescuers
  @rescuers ||= []
end