Class: SimpleCov::Formatter::WorkspaceLcovFormatter::Configuration
- Inherits:
-
Object
- Object
- SimpleCov::Formatter::WorkspaceLcovFormatter::Configuration
- Defined in:
- lib/simplecov-workspace-lcov/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.
- #workspace_path ⇒ Object
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
31 32 33 |
# File 'lib/simplecov-workspace-lcov/configuration.rb', line 31 def lcov_file_name @lcov_file_name || "#{Pathname.new(SimpleCov.root).basename}.lcov" end |
#output_directory ⇒ Object
18 19 20 |
# File 'lib/simplecov-workspace-lcov/configuration.rb', line 18 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
5 6 7 |
# File 'lib/simplecov-workspace-lcov/configuration.rb', line 5 def report_with_single_file=(value) @report_with_single_file = value end |
Instance Method Details
#report_with_single_file? ⇒ Boolean
10 11 12 |
# File 'lib/simplecov-workspace-lcov/configuration.rb', line 10 def report_with_single_file? !!@report_with_single_file end |
#single_report_path ⇒ Object
27 28 29 |
# File 'lib/simplecov-workspace-lcov/configuration.rb', line 27 def single_report_path @single_report_path || File.join(output_directory, lcov_file_name) end |
#single_report_path=(new_path) ⇒ Object
22 23 24 25 |
# File 'lib/simplecov-workspace-lcov/configuration.rb', line 22 def single_report_path=(new_path) self.output_directory = File.dirname(new_path) @single_report_path = new_path end |