End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Kernel#puts
puts(obj, ...) → nil
io.c
View on GitHub ↗
static VALUE
rb_f_puts(int argc, VALUE *argv, VALUE recv)
{
VALUE r_stdout = rb_ractor_stdout();
if (recv == r_stdout) {
return rb_io_puts(argc, argv, recv);
}
return rb_funcallv(r_stdout, rb_intern("puts"), argc, argv);
}
Equivalent to
$stdout.puts(obj, ...)