зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
03919fd210
Коммит
7a4aad7535
|
@ -1,3 +1,7 @@
|
|||
Sat Nov 10 16:34:21 2007 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/soap/property.rb: Don't override Enumerable#inject for 1.9.
|
||||
|
||||
Sat Nov 10 14:43:30 2007 David Flanagan <davidflanagan@ruby-lang.org>
|
||||
|
||||
* parse.y: use ASCII encoding for string literals that are
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче