p(obj) â objp(obj1, obj2, ...) â [obj, ...]p() â nil
Instance Public methods
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:
#<S name="dave", state="TX">