Web | This Site

Ruby Basics
Ruby Advanced
Ruby Useful References
Ruby Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM

| Home |  | References |  | Discussion Forums |  | About TP

# ri: Ruby Interactive Reference

ri is a online reference tool developed by Dave Thomas, the famous pragmatic programmer.

When you have a question about the behavior of a certain method, you can invoke ri to read the brief explanation of the method.

You can get ri from ri: Ruby Interactive

## Usage Syntax:

Here is simple syntax to use ri

    ri [ options ] [ methodname... ]

Here is a complete list of options:

SN | Command with Description
--- | ---
1 | --version, -v Displays version and exits.
1 | --line-length=n -l n Sets the line length for the output (minimum is 30 characters).
2 | --synopsis -s Displays just a synopsis.
3 | --format= name -f name Uses the name module (default is Plain) for output formatting. Here are the available modules:

- Tagged: Simple tagged output
- Plain: Default plain output

name should be specified in any of the following forms:

- Class
- Class::method
- Class#method
- Class.method
- method

Advertisement

Online Image Processing

Indian Baby Names