class SimpleCovTextFormatter::ResultExporter

Constants

FILENAME

Public Class Methods

new(errors_list) click to toggle source
# File lib/simplecov_text_formatter/result_exporter.rb, line 5
def initialize(errors_list)
  @result = errors_list
end

Public Instance Methods

export() click to toggle source
# File lib/simplecov_text_formatter/result_exporter.rb, line 9
def export
  File.open(export_path, 'w') do |file|
    file << @result.join("\n")
  end
end

Private Instance Methods

export_path() click to toggle source
# File lib/simplecov_text_formatter/result_exporter.rb, line 17
def export_path
  File.join(SimpleCov.coverage_path, FILENAME)
end