class SimpleCovJSONFormatter::ResultExporter
def export
def export File.open(export_path, 'w') do |file| file << json_result end end
def export_path
def export_path File.join(SimpleCov.coverage_path, FILENAME) end
def initialize(result_hash)
def initialize(result_hash) @result = result_hash end
def json_result
def json_result JSON.pretty_generate(@result) end