[ruby/timeout] [DOC] Missing documents

https://github.com/ruby/timeout/commit/301ad4cfdc
This commit is contained in:
Nobuyoshi Nakada 2023-12-18 14:02:15 +09:00 committed by Hiroshi SHIBATA
parent 24e0f6fcab
commit bb6cf76362

View File

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