class Net::SSH::Buffer

def write_string(*text)

Does not alter the read position. Returns the buffer object.
string is prefixed by its length, encoded as a 4-byte long integer.
Writes each argument to the buffer as an SSH2-encoded string. Each
def write_string(*text)
  text.each do |string|
    s = string.to_s
    write_long(s.bytesize)
    write(s)
  end
  self
end