Created
October 21, 2013 00:03
-
-
Save invisiblefunnel/7076856 to your computer and use it in GitHub Desktop.
require all the things
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
| 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