O'Reilly logo

Ruby by Example by Kevin C. Baird

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the Ruby Interpreter and Environment

If you come from a Unix background, you’re probably already familiar with the concept of command-line options and environment variables. If you’re not familiar with these terms, they’re just ways for the computer to keep track of external data, usually configuration options. Ruby uses command-line options and environment variables to keep track of things like how paranoid or lax it should be in relation to security or how verbose to be about warnings. We’ve already seen an example of this in the instructions for installing Ruby from a source download, when we executed this command:

ruby --version

As you’d expect, that just asks Ruby to report its version. You can find out the various command-line options ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required