0

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:

  1. Find this array in memory.
  2. View it in a hex editor.
the Tin Man
  • 158,662
  • 42
  • 215
  • 303
MxLDevs
  • 19,048
  • 36
  • 123
  • 194
  • The first part of this is addressed in http://stackoverflow.com/a/2419130/1008891 – Peter Alfvin Sep 19 '13 at 15:16
  • Definitely sounds more engaged than I had initially thought. For the purposes of just "figuring out how it is stored" it might be easier to just search for where the data could be in the memory dump. – MxLDevs Sep 19 '13 at 20:54

0 Answers0