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 << "\n" output << "\n" count = 0 operators.each do |operator| output << <<-EOF EOF count += 1 end output << "
ScoreOperator
#{sprintf(SCORE_FORMAT, operator.score)} #{operator.operator}
\n\n" end end end