You can run ri from inside IRB if you do this:
ri
def ri(*args) RDoc::RI::Driver.run(args) end
Now you can do
> ri 'String.length'