Ruby functions list

Can anyone please suggest a webpage, e-book or a software where i could
just search a class or a method, for example gsub() and it would show an
explanation about that function and example.
Like in a BorlandC++ 3.1 pressing Ctrl+F1 will show help on current
operator and example.

Sorry for my grammatical skills, my english is not so good

http://www.ruby-doc.org

On 10/21/2010 7:40 PM, Alex S. wrote:

Can anyone please suggest a webpage, e-book or a software where i could
just search a class or a method, for example gsub() and it would show an
explanation about that function and example.
Like in a BorlandC++ 3.1 pressing Ctrl+F1 will show help on current
operator and example.

Sorry for my grammatical skills, my english is not so good

http://www.ruby-lang.org/en/documentation/

http://www.ruby-doc.org/docs/ProgrammingRuby/

Thank you.

On Thu, Oct 21, 2010 at 7:40 PM, Alex S. [email protected] wrote:

What wrong with using ri ?

ri gsub

by default it will tell you each class that support a function and
then you can drill down i.e.

ri size

ri String.size
ri Array.size

to search up just a class, use
ri Array

imho the command line is a lot faster to lookup things vs switching to
a browser, searching for a bookmark then navigating to the website
with no search or poor search and then clicking on a link

for more help type
ri --help


Kind Regards,
Rajinder Y. | DevMentor.org | Do Good! ~ Share Freely

GNU/Linux: 2.6.35-22-generic
Kubuntu x86_64 10.10 | KDE 4.5.1
Ruby 1.9.2p0 | Rails 3.0.1

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs