method

write

write(s)
public

Writes s to the stream. If the argument is not a string it will be converted using String#to_s. Returns the number of bytes written.