Appendix D. Essential Vocabulary

This appendix lists much of Ruby's essential vocabulary: reserved words, standard method names, and class and module names that are built into Ruby or accessible from standard libraries. The meanings of the names are not documented here, although many are discussed elsewhere in this book; consult Ruby reference materials online at http://www.ruby-lang.org for further information.

Some words have intrinsic meaning to Ruby and should not be used to mean something else. There is no strict enforcement of this guideline; if the interpreter doesn't see an ambiguity right away, you can try to use a reserved word to name anything you want, but the results will probably be unsatisfactory. For instance, you're allowed to ...

Get Sams Teach Yourself Ruby in 21 Days 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.