January 2024
Intermediate to advanced
718 pages
20h 15m
English
Have you ever craved the ability to traverse all the living objects in your program? We have! Ruby has a global object called ObjectSpace that lets you do some fun tricks with the set of objects Ruby is tracking (this means all the objects that have been created and not yet destroyed by garbage collection).
|
What Is Garbage Collection? | |
|---|---|
|
|
Ruby is a dynamic language, and it doesn’t require the programmer to manage the memory that the program uses during runtime. Instead, Ruby uses a process called garbage collection. Garbage collection looks for objects that have been allocated into memory but are no longer in scope or are otherwise ... |
Read now
Unlock full access