class PrettyDiff::LineGenerator attr_reader :line def initialize(line) @line = line end def generate if line.modified? modified_html(content) elsif line.added? added_html(content) elsif line.deleted? deleted_html(content) else not_modified_html(content) end end private def content @_content ||= line.format end def wrapper_html if line.diff.options[:wrap_lines] "