Chapter 7. Built-in essentials
In this chapter
- Literal object constructors
- Syntactic sugar
- “Dangerous” and/or destructive methods
- The to_* family of conversion methods
- Boolean states and objects, and nil
- Object-comparison techniques
- Runtime inspection of objects’ capabilities
The later chapters in this part of the book will cover specific built-in classes: what they are, what you can do with them, and what methods their instances have. This chapter will discuss a selection of topics that cut across a number of built-in classes.
It’s more than that, though: it’s also a kind of next-generation Ruby literacy guide, a deeper and wider version of chapter 1. Like chapter 1, this chapter has two goals: making it possible to take a certain ...
Get The Well-Grounded Rubyist 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.