puts

ios.puts(obj, ...) â nil
Instance Public methods

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.

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

produces:

1
2
3
4
this
is
a
test
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.