mrblib/array.rb: `Array#<=>` to handle `NoMethodError` exception.
Array element may not respond to `<=>` method.
MODIFY
mrblib/array.rb
mrblib/array.rb
@@ -167,11 +167,15 @@ class Array
n = other.size
len = n if len > n
i = 0
+ begin
while i < len
n = (self[i] <=> other[i])
return n if n.nil? || n != 0
i += 1
end
+ rescue NoMethodError
+ return nil
+ end
len = self.size - other.size
if len == 0
0

mrblib/array.rb: `Array#<=>` to handle `NoMethodError` exception.

Array element may not respond to `<=>` method.