<<(p1) public

<a href="/ruby/String">String</a> Output&#8212;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.