From bb6cf76362a3e7614b6ff8899876b2a1812f9ed1 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 18 Dec 2023 14:02:15 +0900 Subject: [PATCH] [ruby/timeout] [DOC] Missing documents https://github.com/ruby/timeout/commit/301ad4cfdc --- lib/timeout.rb | 5 +++-- 1 file 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