views:

104

answers:

5

I need a good reference for how to use standard Libraries in Ruby. What confuses me about current libraries is that they don't describe or give examples like say Java's. Yet this is where examples are much more needed (in Ruby), because I am not familiar with how the called method will yield! So I am left with having to look at the source files every time, which seems ineffecient. So what is a good standard library reference... or am I just not understanding blocks yet?

+3  A: 

There is the Ruby Standard Library documentation and sites like apidock. The Pickaxe book has a great reference towards the end. There's even a free version online, but it's quite out of date; to find the reference there, click Standard Library in the top-left frame.

dylanfm
+1 for apidock, there guide is done very well, includes both core and standard so I don't have to guess (nuby here). I'll use this for now, thanks.
Zombies
+4  A: 

I find myself bouncing around between the ruby core API on ruby-doc.org, googling for answers on random blogs, and spending time testing ideas in the interactive interpreter (irb). I haven't seen any other core reference documentation that I liked, but I do have a copy of The Ruby Way and its pretty decent.

Betweeen these four sources I can almost always find out how to solve the problem I'm working on.

Best of luck - ruby is fun, frustrating, and powerful.

Sam Post
+1  A: 

Try GotAPI You'll be able to find the Ruby standard documentation and a whole lot of api docs there

pgmura
A: 

Understanding blocks is pretty important, especially if you want to understand the Enumerable module. ruby-doc.org is usually all I need, but if I need a little more explanation I grab the PickAxe. You need the PickAxe, no question.

Ben Marini
A: 

I am sorry , but again, i have to recommend ruby cookbook. (Already two times today)

pierr