Skip to content

Instantly share code, notes, and snippets.

@dalibor
Created January 31, 2010 09:05
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 dalibor/290981 to your computer and use it in GitHub Desktop.
Save dalibor/290981 to your computer and use it in GitHub Desktop.
Track requires order
$rlevel = []
alias :orig_require :require
def require(file)
puts "#{$rlevel.join}#{file}"
$rlevel << "-"
req = orig_require(file)
$rlevel.pop
req
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment