method
file_type
v7.2.3 -
Show latest stable
- Class:
CodeStatisticsCalculator
file_type(file_path)private
No documentation available.
# File railties/lib/rails/code_statistics_calculator.rb, line 90
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