module MetricFu::FlogReporter class ScannedMethod attr_accessor :name, :score, :operators def initialize(name, score, operators = []) @name = name @score = score.to_f @operators = operators end def to_html output = "
#{name} (#{score})
\n" output << "Score | Operator |
---|---|
#{sprintf(SCORE_FORMAT, operator.score)} | #{operator.operator} |