summaryrefslogtreecommitdiff
path: root/lib/rake.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rake.rb')
-rw-r--r--lib/rake.rb2
1 files changed, 1 insertions, 1 deletions
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]