method

write

write(*s)
public

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