2003-12-16 00:44:25 -05:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
# usage:
|
|
|
|
#
|
|
|
|
# ri name...
|
|
|
|
#
|
|
|
|
# where name can be
|
|
|
|
#
|
|
|
|
# Class | Class::method | Class#method | Class.method | method
|
|
|
|
#
|
2007-10-03 10:39:54 -04:00
|
|
|
# All names may be abbreviated to their minimum unambiguous form. If a name
|
2003-12-16 00:44:25 -05:00
|
|
|
# _is_ ambiguous, all valid options will be listed.
|
|
|
|
#
|
2003-12-18 22:58:57 -05:00
|
|
|
# The form '.' method matches either class or instance methods, while
|
|
|
|
# #method matches only instance and ::method matches only class methods.
|
2004-08-30 10:22:26 -04:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# == Installing Documentation
|
|
|
|
#
|
|
|
|
# 'ri' uses a database of documentation built by the RDoc utility.
|
|
|
|
#
|
|
|
|
# So, how do you install this documentation on your system?
|
|
|
|
# It depends on how you installed Ruby.
|
|
|
|
#
|
|
|
|
# <em>If you installed Ruby from source files</em> (that is, if it some point
|
|
|
|
# you typed 'make' during the process :), you can install the RDoc
|
|
|
|
# documentation yourself. Just go back to the place where you have
|
|
|
|
# your Ruby source and type
|
|
|
|
#
|
|
|
|
# make install-doc
|
|
|
|
#
|
|
|
|
# You'll probably need to do this as a superuser, as the documentation
|
|
|
|
# is installed in the Ruby target tree (normally somewhere under
|
|
|
|
# <tt>/usr/local</tt>.
|
|
|
|
#
|
|
|
|
# <em>If you installed Ruby from a binary distribution</em> (perhaps
|
|
|
|
# using a one-click installer, or using some other packaging system),
|
|
|
|
# then the team that produced the package probably forgot to package
|
|
|
|
# the documentation as well. Contact them, and see if they can add
|
|
|
|
# it to the next release.
|
|
|
|
#
|
|
|
|
|
2003-12-16 00:44:25 -05:00
|
|
|
|
2004-01-06 00:59:31 -05:00
|
|
|
require 'rdoc/ri/ri_driver'
|
2004-01-02 01:01:12 -05:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
2004-01-06 00:59:31 -05:00
|
|
|
ri = RiDriver.new
|
2004-01-02 01:01:12 -05:00
|
|
|
ri.process_args
|
|
|
|
|