Class: Closer::Formatter::HtmlBuilder
- Inherits:
-
Builder::XmlMarkup
- Object
- Builder::XmlMarkup
- Closer::Formatter::HtmlBuilder
- Defined in:
- lib/closer/formatter/html_builder.rb
Instance Method Summary collapse
Instance Method Details
#build_document! ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/closer/formatter/html_builder.rb', line 13 def build_document! declare! # <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> self << '<html>' end |
#declare! ⇒ Object
9 10 11 |
# File 'lib/closer/formatter/html_builder.rb', line 9 def declare! super(:DOCTYPE, :html) end |
#format_features!(features) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/closer/formatter/html_builder.rb', line 21 def format_features!(features) step_count = features && features.step_count || 0 self << '<body>' self << "<!-- Step count #{step_count}-->" self << '<div class="cucumber">' div(id: 'cucumber-header') do div(id: 'label') do h1 'Cucumber Features' end summary_div end end |