method

puts

Importance_1
v1_9_3_125 - Show latest stable - 0 notes - Class: ARGF
puts(*args) public

Writes the given objects to ios as with IO#print. Writes a record separator (typically a newline) after any that do not already end with a newline sequence. If called with an array argument, writes each element on a new line. If called without arguments, outputs a single record separator.

$stdout.puts("this", "is", "a", "test")

produces:

this
is
a
test
Show source
Register or log in to add new notes.