method
post_process
post_process(highlighted, offending_line)
public
Hide source
# File lib/spec/runner/formatter/snippet_extractor.rb, line 39 def post_process(highlighted, offending_line) new_lines = [] highlighted.split("\n").each_with_index do |line, i| new_line = "<span class=\"linenum\">#{offending_line+i-2}</span>#{line}" new_line = "<span class=\"offending\">#{new_line}</span>" if i == 2 new_lines << new_line end new_lines.join("\n") end