method

file_type

rails latest stable - Class: Rails::CodeStatisticsCalculator

Method not available on this version

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

file_type(file_path)
private

No documentation available.

# File railties/lib/rails/code_statistics_calculator.rb, line 91
      def file_type(file_path)
        if file_path.end_with? "_test.rb"
          :minitest
        else
          File.extname(file_path).delete_prefix(".").downcase.to_sym
        end
      end