Module: Diffed::Html

Included in:
Diff, Line, Section
Defined in:
lib/formatters/html.rb

Defined Under Namespace

Classes: OutputRow

Instance Method Summary collapse

Instance Method Details

#as_html_table(use_inline_styles = true) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/formatters/html.rb', line 3

def as_html_table(use_inline_styles=true)
  html = make_table_tag(use_inline_styles)
  
  sections.each do |section|
    html << section.as_html_rows(use_inline_styles)
  end

  html << "</table>"
end