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

ruby-changes:2370

From: ko1@a...
Date: 10 Nov 2007 16:35:58 +0900
Subject: [ruby-changes:2370] drbrain - Ruby:r13861 (trunk): Don't override Enumerable#inject for 1.9

drbrain	2007-11-10 16:35:37 +0900 (Sat, 10 Nov 2007)

  New Revision: 13861

  Modified files:
    trunk/ChangeLog
    trunk/lib/soap/property.rb

  Log:
    Don't override Enumerable#inject for 1.9

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13861&r2=13860
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/soap/property.rb?r1=13861&r2=13860

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 13860)
+++ ChangeLog	(revision 13861)
@@ -1,3 +1,7 @@
+Sat Nov 10 16:34:21 2007  Eric Hodel  <drbrain@s...>
+
+	* lib/soap/property.rb: Don't override Enumerable#inject for 1.9.
+
 Sat Nov 10 14:43:30 2007  David Flanagan  <davidflanagan@r...>
 
 	* parse.y: use ASCII encoding for string literals that are
Index: lib/soap/property.rb
===================================================================
--- lib/soap/property.rb	(revision 13860)
+++ lib/soap/property.rb	(revision 13861)
@@ -320,7 +320,7 @@
 
 
 # for ruby/1.6.
-unless Enumerable.instance_methods.include?('inject')
+if RUBY_VERSION < "1.8" then
   module Enumerable
     def inject(init)
       result = init

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

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