Skip to content

Instantly share code, notes, and snippets.

@dmcclory
Last active December 23, 2015 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmcclory/6657111 to your computer and use it in GitHub Desktop.
Save dmcclory/6657111 to your computer and use it in GitHub Desktop.
at startup, create a Hash of all the objects. then explore.
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