Skip to content

Instantly share code, notes, and snippets.

@warmwaffles
Created May 29, 2014 03:41
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 warmwaffles/4986fe90890b5088ab92 to your computer and use it in GitHub Desktop.
Save warmwaffles/4986fe90890b5088ab92 to your computer and use it in GitHub Desktop.
# Use this when you need to figure out what is being required and where
def require(*args)
puts "\e[1;31m[required]\e[0m %s => \e[0;36m%s\e[0m" % [caller.first, args.first]
super
end
def load(*args)
puts "\e[1;31m[loaded]\e[0m %s => \e[0;36m%s\e[0m" % [caller.first, args.first]
super
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment