Method: Kernel#puts

Defined in:
io.c

#puts(obj, ...) ⇒ nil

Equivalent to

$stdout.puts(obj, ...)


7132
7133
7134
7135
7136
7137
7138
7139
# File 'io.c', line 7132

static VALUE
rb_f_puts(int argc, VALUE *argv, VALUE recv)
{
    if (recv == rb_stdout) {
	return rb_io_puts(argc, argv, recv);
    }
    return rb_funcall2(rb_stdout, rb_intern("puts"), argc, argv);
}