method

populate_loads

rails latest stable - Class: RailInspector::Requires

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

populate_loads()
private

No documentation available.

# File tools/rail_inspector/lib/rail_inspector/requires.rb, line 27
      def populate_loads
        current_file = nil
        v = Visitor::Load.new { @loads[current_file] }

        @rails_path.glob("{#{frameworks.join(",")}}/lib/**/*.rb") do |file_pathname|
          current_file = file_pathname.to_s

          @loads[current_file] = { requires: [], autoloads: [] }

          Prism.parse_file(current_file).value.accept(v)
        end
      end