class Rake::LinkedList

def ==(other)

Lists are structurally equivalent.
def ==(other)
  current = self
  while !current.empty? && !other.empty?
    return false if current.head != other.head
    current = current.tail
    other = other.tail
  end
  current.empty? && other.empty?
end