Skip to content

Instantly share code, notes, and snippets.

@invisiblefunnel
Created October 21, 2013 00:03
Show Gist options
  • Select an option

  • Save invisiblefunnel/7076856 to your computer and use it in GitHub Desktop.

Select an option

Save invisiblefunnel/7076856 to your computer and use it in GitHub Desktop.
require all the things
puts ObjectSpace.each_object(Class){}
$LOAD_PATH.each do |dir|
Dir[File.join(dir, '*.rb')].each do |path|
lib = File.basename(path).gsub(/\.rb$/, '')
next if %w(debug gauntlet_rubygems monitor dl profile).include?(lib)
begin
require lib
rescue LoadError
end
end
end
puts ObjectSpace.each_object(Class){}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment