From 7a4aad75356496559460041a6c063bdb736c7236 Mon Sep 17 00:00:00 2001 From: drbrain Date: Sat, 10 Nov 2007 07:35:37 +0000 Subject: Don't override Enumerable#inject for 1.9 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/soap/property.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/soap/property.rb b/lib/soap/property.rb index 51f2e82628..0dc4551052 100644 --- a/lib/soap/property.rb +++ b/lib/soap/property.rb @@ -320,7 +320,7 @@ end # for ruby/1.6. -unless Enumerable.instance_methods.include?('inject') +if RUBY_VERSION < "1.8" then module Enumerable def inject(init) result = init -- cgit v1.2.3