зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
7d909eb218
Коммит
cb04140542
|
@ -48,7 +48,7 @@ module Timeout
|
||||||
# :stopdoc:
|
# :stopdoc:
|
||||||
THIS_FILE = /\A#{Regexp.quote(__FILE__)}:/o
|
THIS_FILE = /\A#{Regexp.quote(__FILE__)}:/o
|
||||||
CALLER_OFFSET = ((c = caller[0]) && THIS_FILE =~ c) ? 1 : 0
|
CALLER_OFFSET = ((c = caller[0]) && THIS_FILE =~ c) ? 1 : 0
|
||||||
private_constant *%I[THIS_FILE CALLER_OFFSET]
|
private_constant :THIS_FILE, :CALLER_OFFSET
|
||||||
# :startdoc:
|
# :startdoc:
|
||||||
|
|
||||||
# Perform an operation in a block, raising an error if it takes longer than
|
# Perform an operation in a block, raising an error if it takes longer than
|
||||||
|
|
Загрузка…
Ссылка в новой задаче