class Net::SSH::Buffer

def ==(buffer)

are identical in size and content.
Compares the contents of the two buffers, returning +true+ only if they
def ==(buffer)
  to_s == buffer.to_s
end