Tietew です。

CVS リポジトリのバージョンで,Net::HTTP::version_1_2 が効きませ
ん。多分 1.6.7 でも同じ症状。

class Foo
  class << self; @@test = 1; end
  p @@test
end
# => nil (1.6.6)


Index: lib/net/http.rb
===================================================================
RCS file: /src/ruby/lib/net/http.rb,v
retrieving revision 1.41.2.18
diff -u -2 -r1.41.2.18 http.rb
--- lib/net/http.rb	2002/02/22 12:50:23	1.41.2.18
+++ lib/net/http.rb	2002/03/05 08:08:12
@@ -418,27 +418,21 @@
     @@newimpl = false
 
-    class << self
-
-      def version_1_2
-        @@newimpl = true
-      end
-
-      def version_1_1
-        @@newimpl = false
-      end
-
-      def is_version_1_2?
-        @@newimpl
-      end
-
-      private
+    def self.version_1_2
+      @@newimpl = true
+    end
 
-      def setimplversion( obj )
-        f = @@newimpl
-        obj.instance_eval { @newimpl = f }
-      end
+    def self.version_1_1
+      @@newimpl = false
+    end
 
+    def self.is_version_1_2?
+      @@newimpl
     end
 
+    def self.setimplversion( obj )
+      f = @@newimpl
+      obj.instance_eval { @newimpl = f }
+    end
+    private_class_method :setimplversion
 
     #


―[ Tietew ]――――――――――――――――――――――――――
 メ : tietew / tietew.net / tietew / raug.net / tietew / masuclub.net
ホペ: http://www.tietew.net/     Tietew Windows Lab.
      http://www.masuclub.net/   鱒倶楽部
指紋: 26CB 71BB B595 09C4 0153  81C4 773C 963A D51B 8CAA