diff --git a/lib/timeout.rb b/lib/timeout.rb index d8806e22b3..c67a748856 100644 --- a/lib/timeout.rb +++ b/lib/timeout.rb @@ -23,18 +23,19 @@ # Copyright:: (C) 2000 Information-technology Promotion Agency, Japan module Timeout + # The version VERSION = "0.4.1" # Internal error raised to when a timeout is triggered. class ExitException < Exception - def exception(*) + def exception(*) # :nodoc: self end end # Raised by Timeout.timeout when the block times out. class Error < RuntimeError - def self.handle_timeout(message) + def self.handle_timeout(message) # :nodoc: exc = ExitException.new(message) begin