Last active
December 23, 2015 15:39
-
-
Save dmcclory/6657111 to your computer and use it in GitHub Desktop.
at startup, create a Hash of all the objects. then explore.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
objects = Hash.new {|h, c| h[c] = Array.new } | |
ObjectSpace.each_object do |o| | |
objects[o.class] << o | |
end | |
require 'pry'; binding.pry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment