A question about ruby-doc

I installed ruby-doc-stdlib-0.10.1 in my computer and open the index
file. I failed to show the method of String class. There are a lot of
packages in the left frame and I don’t know which one contains string
class. How can I search in ruby doc?

thanks.

I often find myself not connected to the Internet and want to read
ruby-doc core and standard locally. What is the best way to get a local
copy of these libraries? I bet they come with the Ruby install, but I
have not been able to find them (running Ubuntu 9.03).

I installed ruby-doc-stdlib-0.10.1 in my computer and open the index
file. I failed to show the method of String class. There are a lot of
packages in the left frame and I don’t know which one contains string
class. How can I search in ruby doc?

Well, I think I found the answer to your question. You downloaded the
Standard library, which does not contain String. You need to download
the Core library from this location:

Then under the words, “The 1.8.6 Base Distribution RDoc HTML”

click on the “tgz file” link.

That will give you the core library for viewing locally. In there, you
can search by class and find String.

Jason

On Aug 5, 2009, at 12:12, Jason L. wrote:

Then under the words, “The 1.8.6 Base Distribution RDoc HTML”

click on the “tgz file” link.

That will give you the core library for viewing locally. In there, you
can search by class and find String.

Also, you can view RDoc for installed gems locally, see:

gem help server

Jason L. wrote:

Well, I think I found the answer to your question. You downloaded the
Standard library, which does not contain String. You need to download
the Core library from this location:

Ruby-Doc.org: Documenting the Ruby Language

Then under the words, “The 1.8.6 Base Distribution RDoc HTML”

click on the “tgz file” link.

That will give you the core library for viewing locally. In there, you
can search by class and find String.

Jason

Good. I saw that it is released on 06-30-2009.
BTW, do you know where I can download rails document?

thanks.

Zhao Yi wrote:

Good. I saw that it is released on 06-30-2009.
BTW, do you know where I can download rails document?

This looks promising… http://railsapi.com/

And I know documentation comes with the rails install. On my Ubuntu, I
can go to /usr/lib/ruby/gems/1.8/doc/ and find documentation for:

ActiveRecord
ActionPack
ActionMailer

and other gems you have installed.

Go into one of those folders and find the “index.html” file and open it.
You should find the classes you are looking for in the rdoc folder.

In Windows you can go find the ruby folder and should find the same
thing.