[前][次][番号順一覧][スレッド一覧]

ruby-changes:41643

From: nobu <ko1@a...>
Date: Tue, 2 Feb 2016 16:07:07 +0900 (JST)
Subject: [ruby-changes:41643] nobu:r53717 (trunk): downloader.rb: https setter

nobu	2016-02-02 16:08:13 +0900 (Tue, 02 Feb 2016)

  New Revision: 53717

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53717

  Log:
    downloader.rb: https setter
    
    * tool/downloader.rb (Downloader.https): define class variable
      setter for 1.8, class_variable_set was private.

  Modified files:
    trunk/tool/downloader.rb
Index: tool/downloader.rb
===================================================================
--- tool/downloader.rb	(revision 53716)
+++ tool/downloader.rb	(revision 53717)
@@ -31,6 +31,10 @@ else https://github.com/ruby/ruby/blob/trunk/tool/downloader.rb#L31
 end
 
 class Downloader
+  def self.https=(https)
+    @@https = https
+  end
+
   def self.https
     if @@https != 'https'
       warn "*** using http instead of https ***"
@@ -190,7 +194,7 @@ class Downloader https://github.com/ruby/ruby/blob/trunk/tool/downloader.rb#L194
   end
 end
 
-Downloader.class_variable_set(:@@https, https.freeze)
+Downloader.https = https.freeze
 
 if $0 == __FILE__
   since = true

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]