From: Robert Klemme Date: 2012-07-05T17:38:37+09:00 Subject: Re: question: p expression On Thu, Jul 5, 2012 at 10:29 AM, smoothedatol412 @gmail.com wrote: > Lately I have been going through some Ruby books and I keep coming up on > an script like the following: > > hash={"A"=>10, "B"=>20, "C"=>30} > p hash.keys() # what is this > > What is this p method or expression I keep coming across? I understand > that this is some kind of print statement, but that is all I understand > about this statement. > I have tried doing a google search, but since I cannot defined what > this expression is I have not found a vaild result. Can someone please > explain what this [p] expression or method is?? Try "ri p" instead or http://rdoc.info/stdlib/core/frames Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/