p

p

ri

 --------------------------------------------------------------- Kernel#p
      p(obj, ...)    => nil
 ------------------------------------------------------------------------
      For each object, directly writes _obj_. inspect  followed by the
      current output record separator to the program's standard output.
 
         S = Struct.new(:name, :state)
         s = S['dave', 'TX']
         p s
 
      _produces:_
 
         #
 

refe

 Kernel#p
 --- p(obj, [obj2, ...])
 
     obj を人間に読みやすい形で出力します。以下のコードと同じです。
     (Object#inspect [Object/inspect]参照)
 
       print obj.inspect, "\n", obj2.inspect, "\n", ...
 
     nil を返します。