Flowdock
method

file_type

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: CodeStatisticsCalculator
file_type(file_path) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/code_statistics_calculator.rb, line 81
    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
Register or log in to add new notes.