For each object, directly writes obj.inspect followed by a newline to the program’s standard output.
inspect
S = Struct.new(:name, :state) s = S['dave', 'TX'] p s
produces:
#<S name="dave", state="TX">
Overloads:
Returns:
7859 7860 7861 7862 7863 7864 7865 7866 7867
# File 'io.c', line 7859 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); }