summaryrefslogtreecommitdiff
path: root/lib/timeout.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-14 02:34:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-14 02:34:53 +0000
commitcb04140542f448d2014ba4934473328b484351e2 (patch)
tree4c2475bcb5abf98df1273321e0349ed048120261 /lib/timeout.rb
parent7d909eb218100aa110031e2aadf0fead94146e8b (diff)
timeout.rb: suppress a warning
* lib/timeout.rb (Timeout): get rid of an argument prefix warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/timeout.rb')
-rw-r--r--lib/timeout.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/timeout.rb b/lib/timeout.rb
index 5dd061cf43..54b93e9716 100644
--- a/lib/timeout.rb
+++ b/lib/timeout.rb
@@ -48,7 +48,7 @@ module Timeout
# :stopdoc:
THIS_FILE = /\A#{Regexp.quote(__FILE__)}:/o
CALLER_OFFSET = ((c = caller[0]) && THIS_FILE =~ c) ? 1 : 0
- private_constant *%I[THIS_FILE CALLER_OFFSET]
+ private_constant :THIS_FILE, :CALLER_OFFSET
# :startdoc:
# Perform an operation in a block, raising an error if it takes longer than