Class: R19Cov::Report::HTML::DetailPage
- Inherits:
-
Object
- Object
- R19Cov::Report::HTML::DetailPage
- Includes:
- Page
- Defined in:
- lib/r19cov/report/html/detail_page.rb
Constant Summary
Constants included from Page
Page::MAX_FILENAME_SIZE, Page::PERCENTAGE_FORMAT_DIGIT, Page::PERCENTAGE_RATE
Instance Attribute Summary collapse
-
#coverage ⇒ Object
Returns the value of attribute coverage.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(coverage, options) ⇒ DetailPage
constructor
A new instance of DetailPage.
- #output ⇒ Object
Methods included from Page
#coverage_class, #filename_format, #generated_on, #get_binding, #html, #html_file, #html_path, #line_format, #output_dir, #percentage_bar, #percentage_format, #raw_options, #targets, #template
Constructor Details
#initialize(coverage, options) ⇒ DetailPage
Returns a new instance of DetailPage.
9 10 11 12 |
# File 'lib/r19cov/report/html/detail_page.rb', line 9 def initialize(coverage, ) @coverage = coverage @options = end |
Instance Attribute Details
#coverage ⇒ Object
Returns the value of attribute coverage.
14 15 16 |
# File 'lib/r19cov/report/html/detail_page.rb', line 14 def coverage @coverage end |
#options ⇒ Object
Returns the value of attribute options.
14 15 16 |
# File 'lib/r19cov/report/html/detail_page.rb', line 14 def @options end |
Instance Method Details
#output ⇒ Object
16 17 18 19 20 |
# File 'lib/r19cov/report/html/detail_page.rb', line 16 def output File.open(html_file(@coverage.filename), 'w') do |file| file.puts html('detail') end end |