A question about ruby-doc

Z

Zhao Yi

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.
 
J

Jason Lillywhite

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).
 
J

Jason Lillywhite

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:

http://www.ruby-doc.org/downloads/

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
 
E

Eric Hodel

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:

http://www.ruby-doc.org/downloads/

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
 
Z

Zhao Yi

Jason said:
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:

http://www.ruby-doc.org/downloads/

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.
 
J

Jason Lillywhite

Zhao said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,920
Members
47,464
Latest member
Bobbylenly

Latest Threads

Top