Method: Kernel#puts

Defined in:
io.c

#puts(obj, ...) ⇒ nil

Equivalent to

$stdout.puts(obj, ...)


6997
6998
6999
7000
7001
7002
7003
7004
# File 'io.c', line 6997

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

Comments