Project

General

Profile

Bug #4701 ยป nodoc_for_timeout_constants.diff

phiggins (Pete Higgins), 05/16/2011 11:31 AM

View differences:

lib/timeout.rb
class ExitException < ::Exception # :nodoc:
end
# :stopdoc:
THIS_FILE = /\A#{Regexp.quote(__FILE__)}:/o
CALLER_OFFSET = ((c = caller[0]) && THIS_FILE =~ c) ? 1 : 0
# :startdoc:
# Executes the method's block. If the block execution terminates before
# +sec+ seconds has passed, it returns the result value of the block.
    (1-1/1)