Created
January 9, 2013 15:35
-
-
Save codatory/4494070 to your computer and use it in GitHub Desktop.
require most of Ruby 1.9's standard library
This file contains 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
libs = Dir.glob("#{ENV['MY_RUBY_HOME']}/lib/ruby/1.9.1/*.rb").map{|i| i.split('/').last.split('.').first} | |
libs.reject!{|i| i == 'debug'} | |
libs.reject!{|i| i =~ /tk/} | |
libs.reject!{|i| i =~ /^[A-Z]/} | |
libs.each do |lib| | |
puts "Loading #{lib}" | |
require lib | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment