           SPELL=ri
         VERSION=0.8a
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL
        WEB_SITE=http://www.pragmaticprogrammer.com/ruby/downloads/ri.html
      LICENSE[0]=GPL
         ENTERED=20030405
         UPDATED=20050606
        KEYWORDS="doc"
           SHORT="ri displays descriptions of Ruby's built-in methods, classes, and modules."
cat << EOF
ri displays descriptions of Ruby's built-in methods, classes, and modules. Type

   "ri each_with_index"

and you get:

   --------------------------------------------------------
     enumObj.each_with_index {| obj, i | block }  -> nil
   --------------------------------------------------------

     Calls block with two arguments, the item and its index,
     for each item in enumObj.

        hash = Hash.new
        %w(cat dog wombat).each_with_index {|item, index|
          hash[item] = index
        }
        hash   #=> {"dog"=>1, "wombat"=>2, "cat"=>0}

EOF
