Method: Kernel#puts

Defined in:
io.c

#puts(obj, ...) ⇒ nil

Equivalent to

$stdout.puts(obj, ...)

Returns:

  • (nil)


7930
7931
7932
7933
7934
7935
7936
7937
7938
# File 'io.c', line 7930

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);
}