method
print_line
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: CodeStatistics
print_line(name, statistics)
private
Hide source
# File railties/lib/rails/code_statistics.rb, line 99 def print_line(name, statistics) m_over_c = (statistics.methods / statistics.classes) rescue 0 loc_over_m = (statistics.code_lines / statistics.methods) - 2 rescue 0 print "| #{name.ljust(20)} " HEADERS.each_key do |k| print "| #{statistics.send(k).to_s.rjust(width_for(k))} " end puts "| #{m_over_c.to_s.rjust(3)} | #{loc_over_m.to_s.rjust(5)} |" end