Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .document
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
LICENSE.txt
README.md
lib/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to include lib/ here?
I couldn't find any docs about a .document file for RDoc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lib/timeout.rb itself.
If no .document file, all files under the directory will be read.

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