Skip to content

Instantly share code, notes, and snippets.

@sideshowcoder
Created March 23, 2013 15:53
Show Gist options
  • Save sideshowcoder/5228176 to your computer and use it in GitHub Desktop.
Save sideshowcoder/5228176 to your computer and use it in GitHub Desktop.
figure out what has been loaded already
$LOADED_FEATURES.select { |f| f =~ /time/ } #=> []
require 'time' #=> true
$LOADED_FEATURES.select { |f| f =~ /time/ } #=> ["/Users/phil/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/time.rb"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment