On Oct 5, 2004, at 15:41, Mark Hubbart wrote: >> Add the following to your .irbrc file: >> >> def ri(*names) >> system(%{ri #{names.map {|name| name.to_s}.join(" ")}}) >> end > > Is it just me, or does that look a bit kludgy? ri itself is a ruby > script, and a ruby lib. It seems to me that there should be a clean > way of including the ri documentation in every object's methods... ie: It is a tad kludgy, but not too bad... In the chapter I wanted to illustrate extending irb, rather than working on the issues on integrating something such as ri. The extension that you describe would be a wonderful add on: I just didn't have space in the book to show its development. Cheers Dave