print_line(name, statistics) 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.rb, line 82
    def print_line(name, statistics)
      m_over_c   = (statistics.methods / statistics.classes) rescue m_over_c = 0
      loc_over_m = (statistics.code_lines / statistics.methods) - 2 rescue loc_over_m = 0

      puts "| #{name.ljust(20)} "             "| #{statistics.lines.to_s.rjust(5)} "             "| #{statistics.code_lines.to_s.rjust(5)} "             "| #{statistics.classes.to_s.rjust(7)} "             "| #{statistics.methods.to_s.rjust(7)} "             "| #{m_over_c.to_s.rjust(3)} "             "| #{loc_over_m.to_s.rjust(5)} |"
    end
Register or log in to add new notes.