You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require 'backload'
require 'backload/require_relative'
def Kernel.backloaded(feature, options={})
if options[:require]
if rel = options[:relative]
puts "require_relative '#{feature}' (#{rel})"
else
puts "require '#{feature}'"
end
end
end
That by itself is awesome, but of course I want more now 💯
Any idea how I would go about transforming this simple list into something that helps me undertand what files are requiring what, which then require other stuff?
In the best case this would be presented as a tree like structure, comparable to what tree returns:
I am using your gem to output a list of the
require
andrequire_relative
"activity" in my app now:via
That by itself is awesome, but of course I want more now 💯
Any idea how I would go about transforming this simple list into something that helps me undertand what files are requiring what, which then require other stuff?
In the best case this would be presented as a tree like structure, comparable to what
tree
returns:The text was updated successfully, but these errors were encountered: