method

puts

v2_2_9 - Show latest stable - Class: IO
puts(*args)
public

Writes the given object(s) to ios as with IO#print. Writes 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 newline.

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

produces:

this
is
a
test