On Thu, Jul 5, 2012 at 10:29 AM, smoothedatol412 @gmail.com <[email protected]> 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/ -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
