Class: SimpleCovLcovFormatter::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/simplecov_lcov_formatter/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lcov_file_nameObject



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_directoryObject



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

Parameters:

  • value

    the value to set the attribute report_with_single_file to.



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

Returns:

  • (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_pathObject



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