p(*args)
public
For each object, directly writes obj.inspect followed by
a newline to the program’s standard output.
S = Struct.new(:name, :state)
s = S['dave', 'TX']
p s
produces:
Show source
static VALUE
rb_f_p(int argc, VALUE *argv, VALUE self)
{
struct rb_f_p_arg arg;
arg.argc = argc;
arg.argv = argv;
return rb_uninterruptible(rb_f_p_internal, (VALUE)&arg);
}