Sha256: 5a4f265ddf8ac9450994baa345e77f005141bfc684a8ca2e4040e5560cfff6d1
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
class PrettyDiff::LineNumbersGenerator attr_reader :line_numbers def initialize(line_numbers) @line_numbers = line_numbers end def generate column_html(left_column) + column_html(right_column) end private def left_column line_numbers.left_column.join("\n") end def right_column line_numbers.right_column.join("\n") end def column_html(text) %Q[<td width="2%" class="linenos"><pre> #{text}</pre></td>] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pretty_diff-0.6.0 | lib/pretty_diff/html_generators/line_numbers_generator.rb |