Skip to content

Commit

Permalink
[DOC] Missing documents
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 18, 2023
1 parent b41f33d commit 301ad4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/timeout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 301ad4c

Please sign in to comment.