you might also just consider having another terminal window open and  
use it for running ri.
this can be far more convenient (IMHO) than the clutter in irb.