Skip to content

Commit

Permalink
ruby 1.9 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Grim committed Dec 16, 2009
1 parent 3ee046a commit f8acb33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/soap/property.rb
Expand Up @@ -320,12 +320,12 @@ def loadstr(str)


# for ruby/1.6.
unless Enumerable.instance_methods.include?('inject')
unless Enumerable.method_defined?(:inject)
module Enumerable
def inject(init)
result = init
each do |item|
result = yield(result, item)
result = yield(result, item)
end
result
end
Expand Down

0 comments on commit f8acb33

Please sign in to comment.