# File lib/extlib/lazy_array.rb, line 317 def ==(other) if equal?(other) return true end unless other.respond_to?(:to_ary) return false end # if necessary, convert to something that can be compared other = other.to_ary unless other.respond_to?(:[]) cmp?(other, :==) end