Look inside your ruby classes with DrX
Justin Love introduced me to a really interesting gem called DrX that can visually display the internals of any ruby class, interactively!
I had some trouble getting it to work, so I’ll include my steps here:
Ruby must be compiled with pthread. e.g.
rvm install 1.8.7-p72 -C --enable-pthread
brew install graphviz
gem 'drx'to your Gemfile, bundle, and load your console. try
ActiveRecord::Base.seefor example. (I leave the gem commented out of my Gemfile except when I want to use it).
Other introspection-type libraries I’m aware of (I’ll update this)