1.4. Out-of-the-box Ruby tools and applications
When you install Ruby, you get a handful of important command-line tools, which are installed in whatever directory is configured as bindir—usually /usr/local/bin, /usr/bin, or the /opt equivalents. (You can require "rbconfig" and examine Rb-Config::CONFIG["bindir"] to check.) These tools are
- ruby —The interpreter
- irb —The interactive Ruby interpreter
- rdoc and ri —Ruby documentation tools
- rake —Ruby make, a task-management utility
- gem —A Ruby library and application package-management utility
- erb —A templating system
- testrb —A high-level tool for use with the Ruby test framework
In this section we’ll look at all of these tools except erb and testrb. They’re both useful in certain situations but ...
Get The Well-Grounded Rubyist, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.