ruby-changes:39155
From: nobu <ko1@a...>
Date: Tue, 14 Jul 2015 11:35:10 +0900 (JST)
Subject: [ruby-changes:39155] nobu:r51236 (trunk): timeout.rb: suppress a warning
nobu 2015-07-14 11:34:53 +0900 (Tue, 14 Jul 2015) New Revision: 51236 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51236 Log: timeout.rb: suppress a warning * lib/timeout.rb (Timeout): get rid of an argument prefix warning. Modified files: trunk/lib/timeout.rb Index: lib/timeout.rb =================================================================== --- lib/timeout.rb (revision 51235) +++ lib/timeout.rb (revision 51236) @@ -48,7 +48,7 @@ module Timeout https://github.com/ruby/ruby/blob/trunk/lib/timeout.rb#L48 # :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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/