I am wondering if there is a quick and dirty way of displaying via
“puts” the relative path name of files as required or loaded within the
console. It would be useful for debugging. Presently I have a line at
the top of my files something like:
puts “Loading somefile.rb…”
This has been invaluable for diagnosing most errors.
Obviously, in a dynamic language this seems silly. Somehow I know the
ability to do this in a few lines of code is build straight into ruby.