Class: R19Cov::Report::HTML
- Inherits:
-
Object
- Object
- R19Cov::Report::HTML
- Defined in:
- lib/r19cov.rb,
lib/r19cov/report/html.rb,
lib/r19cov/report/html/page.rb,
lib/r19cov/report/html/index_page.rb,
lib/r19cov/report/html/detail_page.rb
Defined Under Namespace
Modules: Page Classes: DetailPage, IndexPage
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ HTML
constructor
A new instance of HTML.
- #output(coverages) ⇒ Object
- #output_dir ⇒ Object
Constructor Details
#initialize(options) ⇒ HTML
Returns a new instance of HTML.
11 12 13 |
# File 'lib/r19cov/report/html.rb', line 11 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
15 16 17 |
# File 'lib/r19cov/report/html.rb', line 15 def @options end |
Instance Method Details
#output(coverages) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/r19cov/report/html.rb', line 21 def output(coverages) create_output_dir copy_stylesheet summary = R19Cov::Coverage::Summary.new(coverages) page = IndexPage.new(summary, ) page.output coverages.each do |coverage| page = DetailPage.new(coverage, ) page.output end end |
#output_dir ⇒ Object
17 18 19 |
# File 'lib/r19cov/report/html.rb', line 17 def output_dir .output_dir end |