Class: SimpleCovLcovFormatter::Configuration
- Inherits:
-
Object
- Object
- SimpleCovLcovFormatter::Configuration
- Defined in:
- lib/simplecov_lcov_formatter/configuration.rb
Instance Attribute Summary collapse
- #lcov_file_name ⇒ Object
- #output_directory ⇒ Object
-
#report_with_single_file ⇒ Object
writeonly
Sets the attribute report_with_single_file.
Instance Method Summary collapse
- #report_with_single_file? ⇒ Boolean
- #single_report_path ⇒ Object
- #single_report_path=(new_path) ⇒ Object
Instance Attribute Details
#lcov_file_name ⇒ Object
24 25 26 |
# File 'lib/simplecov_lcov_formatter/configuration.rb', line 24 def lcov_file_name @lcov_file_name || "#{Pathname.new(SimpleCov.root).basename}.lcov" end |
#output_directory ⇒ Object
11 12 13 |
# File 'lib/simplecov_lcov_formatter/configuration.rb', line 11 def output_directory @output_directory || File.join(SimpleCov.coverage_path, 'lcov') end |
#report_with_single_file=(value) ⇒ Object (writeonly)
Sets the attribute report_with_single_file
3 4 5 |
# File 'lib/simplecov_lcov_formatter/configuration.rb', line 3 def report_with_single_file=(value) @report_with_single_file = value end |
Instance Method Details
#report_with_single_file? ⇒ Boolean
7 8 9 |
# File 'lib/simplecov_lcov_formatter/configuration.rb', line 7 def report_with_single_file? !!@report_with_single_file end |
#single_report_path ⇒ Object
20 21 22 |
# File 'lib/simplecov_lcov_formatter/configuration.rb', line 20 def single_report_path @single_report_path || File.join(output_directory, lcov_file_name) end |
#single_report_path=(new_path) ⇒ Object
15 16 17 18 |
# File 'lib/simplecov_lcov_formatter/configuration.rb', line 15 def single_report_path=(new_path) self.output_directory = File.dirname(new_path) @single_report_path = new_path end |