ruby-changes:39143
From: nobu <ko1@a...>
Date: Mon, 13 Jul 2015 13:50:40 +0900 (JST)
Subject: [ruby-changes:39143] nobu:r51224 (trunk): timeout.rb: internal constants
nobu 2015-07-13 13:50:20 +0900 (Mon, 13 Jul 2015) New Revision: 51224 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51224 Log: timeout.rb: internal constants * lib/timeout.rb (Timeout): make internal constants private. Modified files: trunk/lib/timeout.rb Index: lib/timeout.rb =================================================================== --- lib/timeout.rb (revision 51223) +++ lib/timeout.rb (revision 51224) @@ -48,6 +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] # :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/