开发者

Standard Library Reference for Ruby

开发者 https://www.devze.com 2022-12-16 09:37 出处:网络
I need a good reference for how to use standard Libraries in Ruby. Current l开发者_运维技巧ibraries do not describe or give examples like say Java\'s. Yet this is where examples are much more needed (

I need a good reference for how to use standard Libraries in Ruby. Current l开发者_运维技巧ibraries do not 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 what the called method will yield! I am left with having to look at the source files every time, which seems inefficient. What is a good standard library reference... or am I just not understanding blocks yet?


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.


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.


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


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消