Namespace
Methods
A
D
F
N
R
S
W
Included Modules
Attributes
[RW] result
Instance Public methods
attack()
# File activesupport/test/rescuable_test.rb, line 49
def attack
  raise WraithAttack
end
dispatch(method)
# File activesupport/test/rescuable_test.rb, line 43
def dispatch(method)
  send(method)
rescue Exception => e
  rescue_with_handler(e)
end
fall_back_to_cause()
# File activesupport/test/rescuable_test.rb, line 61
def fall_back_to_cause
  # This exception is the cause and has a handler.
  ronanize
rescue
  # This is the exception we'll handle that doesn't have a cause.
  raise 'unhandled RuntimeError with a handleable cause'
end
nuke()
# File activesupport/test/rescuable_test.rb, line 53
def nuke
  raise NuclearExplosion
end
ronanize()
# File activesupport/test/rescuable_test.rb, line 57
def ronanize
  raise MadRonon.new("dex")
end
sos()
# File activesupport/test/rescuable_test.rb, line 79
def sos
  @result = 'killed'
end
sos_first()
# File activesupport/test/rescuable_test.rb, line 83
def sos_first
  @result = 'sos_first'
end
weird()
# File activesupport/test/rescuable_test.rb, line 69
def weird
  StandardError.new.tap do |exc|
    def exc.weird?
      true
    end

    raise exc
  end
end