Class: SimpleCovJSONFormatter::ResultHashFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/simplecov_json_formatter/result_hash_formatter.rb

Instance Method Summary collapse

Constructor Details

#initialize(result) ⇒ ResultHashFormatter

Returns a new instance of ResultHashFormatter.



7
8
9
# File 'lib/simplecov_json_formatter/result_hash_formatter.rb', line 7

def initialize(result)
  @result = result
end

Instance Method Details

#formatObject



11
12
13
14
15
16
# File 'lib/simplecov_json_formatter/result_hash_formatter.rb', line 11

def format
  format_files
  format_groups

  formatted_result
end