Class: Minitest::Hyper::Report
- Inherits:
-
Object
- Object
- Minitest::Hyper::Report
- Defined in:
- lib/minitest/hyper/report.rb
Instance Attribute Summary collapse
-
#reporter ⇒ Object
readonly
Returns the value of attribute reporter.
Instance Method Summary collapse
- #dirname ⇒ Object
- #filename ⇒ Object
-
#initialize(reporter) ⇒ Report
constructor
A new instance of Report.
- #url ⇒ Object
- #write ⇒ Object
Constructor Details
#initialize(reporter) ⇒ Report
Returns a new instance of Report.
9 10 11 |
# File 'lib/minitest/hyper/report.rb', line 9 def initialize(reporter) @reporter = reporter end |
Instance Attribute Details
#reporter ⇒ Object (readonly)
Returns the value of attribute reporter.
7 8 9 |
# File 'lib/minitest/hyper/report.rb', line 7 def reporter @reporter end |
Instance Method Details
#dirname ⇒ Object
23 24 25 |
# File 'lib/minitest/hyper/report.rb', line 23 def dirname Minitest::Hyper.report_dirname end |
#filename ⇒ Object
27 28 29 |
# File 'lib/minitest/hyper/report.rb', line 27 def filename Minitest::Hyper.report_filename end |
#url ⇒ Object
19 20 21 |
# File 'lib/minitest/hyper/report.rb', line 19 def url "file://#{ filename.gsub(/\\/, "/") }" end |
#write ⇒ Object
13 14 15 16 17 |
# File 'lib/minitest/hyper/report.rb', line 13 def write ensure_output_dir move_existing_file write_file end |