Question: what is pp in ruby?
Answer: p is used to inspect a variable as a debug aide. It works printing the output of the method #inspect . ... pp does this calling the #pretty_inspect method (the pp library adds #pretty_inspect methods to many classes such as String , Array or Struct ). To remember: p = print, pp = pretty print.