<<(p1) public

String Output—Writes obj to ios. obj will be converted to a string using to_s.

$stdout << "Hello " << "world!\n"

produces:

Hello world!
Show source
Register or log in to add new notes.