在Ruby中的p方法难以搜索 [英] p method in Ruby hard to search for
本文介绍了在Ruby中的p方法难以搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在Ruby中找到 p
方法的信息。它似乎产生一个类的属性的内部信息,但是当我尝试搜索它时,我会得到每个单词都有一个字母p。
I'm trying to find info on the p
method in Ruby. It seems to produce internal info on the properties of a class but when I try to search for it I get every word that has the letter "p" in it.
推荐答案
您是否看过api文档页面? http://www.ruby-doc.org/core/Kernel。 html#method-ip
Have you seen the api doc page? http://www.ruby-doc.org/core/Kernel.html#method-i-p
还有一个 http://apidock.com/ruby/Kernel/p
这篇关于在Ruby中的p方法难以搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文