From 666409ba5011a86267d7a54541ce6e69b9e59550 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 7 Feb 2010 03:55:21 +0000 Subject: * lib/rake.rb (Rake::FileList::ARRAY_METHODS): fix test failure by <=> definition at Kernel. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rake.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rake.rb b/lib/rake.rb index f14b9b519f..b46b196878 100644 --- a/lib/rake.rb +++ b/lib/rake.rb @@ -1237,7 +1237,7 @@ module Rake # List of array methods (that are not in +Object+) that need to be # delegated. - ARRAY_METHODS = (Array.instance_methods - Object.instance_methods).map { |n| n.to_s } + ARRAY_METHODS = (Array.instance_methods - (Object.instance_methods - [:<=>])).map { |n| n.to_s } # List of additional methods that must be delegated. MUST_DEFINE = %w[to_a inspect] -- cgit v1.2.3