新手问题 怎样查看 Ruby 提供的方法的用法

msm · April 27, 2015 · Last by luikore replied at April 27, 2015 · 2981 hits

搜了下,找到一个 methods,可以列出某类的可调用的方法,但没有看到具体方法的用法。特来求教

pry 里 show-doc foo_method

谢谢这位朋友,我在 gem install pry 的时候出现以下的错误信息,貌似是不能连接到指定的服务器,请教下怎样解决:ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response Not Found 404 (http://rubygems.global.ssl.fastly.net/quick/Mars hal.4.8/pry-0.10.1-x86-mingw32.gemspec.rz)

5 Floor has deleted
You need to Sign in before reply, if you don't have an account, please Sign up first.