module V8::Error::Protect

Public Instance Methods

protect() { || ... } click to toggle source
# File lib/v8/error/protect.rb, line 3
def protect
  yield
rescue Football => e
  e.kickoff!
rescue Exception => e
  e.extend Football
  e.kickoff!
end