aboutsummaryrefslogtreecommitdiffstats
path: root/lib/timeout.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-13 04:50:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-13 04:50:20 +0000
commit9155d91613f696008ebac02effbd13e50d59ad9d (patch)
treeb85ea1a3a2a6035302e2ab56c80c5a025a7df1ec /lib/timeout.rb
parent98754e1054feb11748b2766602bc0c9bdf6eab59 (diff)
downloadruby-9155d91613f696008ebac02effbd13e50d59ad9d.tar.gz
timeout.rb: internal constants
* lib/timeout.rb (Timeout): make internal constants private. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/timeout.rb')
-rw-r--r--lib/timeout.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/timeout.rb b/lib/timeout.rb
index db52a6fde5..fcb3a0cce1 100644
--- a/lib/timeout.rb
+++ b/lib/timeout.rb
@@ -48,6 +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]
# :startdoc:
# Perform an operation in a block, raising an error if it takes longer than