diff --git a/contrib/ri b/contrib/ri index 5615a020..e2272c23 100644 --- a/contrib/ri +++ b/contrib/ri @@ -1,6 +1,6 @@ # ri completion for Ruby documentation by Ian Macdonald # -# $Id: ri,v 1.6 2003/12/31 08:47:38 ianmacd Exp $ +# $Id: ri,v 1.7 2004/01/04 12:38:09 ianmacd Exp $ # ri_get_methods() { @@ -62,7 +62,7 @@ _ri() if [ "$ri_version" = integrated ]; then # integrated ri from Ruby 1.9 - classes=( $( ri | ruby -ne 'if /I know about:/../For help/ then \ + classes=( $( ri -c | ruby -ne 'if /^\s*$/..$stdin.eof then \ if /, [A-Z]+/ then print; end; end' ) ) elif [ "$ri_version" = "ri 1.8a" ]; then classes=( $( ruby -W0 $ri_path | \