Class: Cuporter::Formatter::TagReport::Html

Inherits:
Writer
  • Object
show all
Includes:
HtmlMethods
Defined in:
lib/cuporter/formatter/tag_report/html.rb

Instance Attribute Summary

Attributes inherited from Writer

#number_scenarios

Instance Method Summary collapse

Methods included from HtmlMethods

#body, #document, #head, #html, #inline_file, #inline_jquery, #inline_js_content, #label, #write, #write_report_node

Methods inherited from Writer

create, #initialize, writer_class

Constructor Details

This class inherits a constructor from Cuporter::Formatter::Writer

Instance Method Details

#header(body) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/cuporter/formatter/tag_report/html.rb', line 20

def header(body)
  body.div(:class => :cuporter_header) do |header|
    label(header)

    body.div(:id => "expand-collapse") do |div|
      div.p("Expand Tags", :id => :expand_tags)
      div.p("Expand All", :id => :expand_all)
      div.p("Collapse All", :id => :collapser)
    end
  end
end

#inline_styleObject



16
17
18
# File 'lib/cuporter/formatter/tag_report/html.rb', line 16

def inline_style
  "tag_report/style.css"
end

#report_node_writerObject



8
9
10
# File 'lib/cuporter/formatter/tag_report/html.rb', line 8

def report_node_writer
  Cuporter::Formatter::TagReport::HtmlNodeWriter
end

#titleObject



12
13
14
# File 'lib/cuporter/formatter/tag_report/html.rb', line 12

def title
  "Cucumber Tags"
end