From: Eugen Ciur Date: 2010-07-23T20:59:08+09:00 Subject: Re: documentation from inside irb Thank you! Gabriel, the only remark is that if I leave method's name 'help' then upon loading irb a warning is issued: irb: warn: can't alias help from irb_help. If 'help' will be renamed to something else, for example, 'hel', then it is possible to call ri help from command line only if its arguments will be quoted: irb(main):007:0> hel String TypeError: can't convert Class into String from /home/eugen/.irbrc:3:in `system' from /home/eugen/.irbrc:3:in `hel' from (irb):7 from :0 irb(main):008:0> hel 'String' => true On 07/23/2010 10:48 AM, Gabriel Horner wrote: > Eugen Ciur wrote: > >> Hi, >> >> is there a way to call ri documentation from irb ? >> > If you just want to access ri within irb then this would do in your > .irbrc: > > def help(*args); system('ri', *args); end > > If you want a smarter ri, see > http://eigenclass.org/hiki/irb+ri+completion and > http://tagaholic.me/2009/06/19/page-irb-output-and-improve-ri-with-hirb.html#ri > . > > As for an improvement on irb's autocompletion, see bond - > http://github.com/cldwalker/bond > > Gabriel >