I would like to see how Ruby objects are stored in memory. For example, when I say something like:
a = [1,2,3,4]
I want to see how that is stored.
The goal is to be able to inspect objects that I do not have the source code to, so I would like to begin with things where the source is readily available.
How can I:
- Find this array in memory.
- View it in a hex editor.