diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-12-18 14:02:15 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-12-25 21:12:49 +0900 |
| commit | bb6cf76362a3e7614b6ff8899876b2a1812f9ed1 (patch) | |
| tree | 339c41ed935509886371073a13c076e1d22722fa /lib | |
| parent | 24e0f6fcab1550d8c1eb5f30e825feeabcb5bee8 (diff) | |
[ruby/timeout] [DOC] Missing documents
https://github.com/ruby/timeout/commit/301ad4cfdc
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/timeout.rb | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
