class RSpec::Core::ExampleStatusDumper

Dumps a list of hashes in a pretty, human readable format for later parsing. The hashes are expected to have symbol keys and string values, and each hash should have the same set of keys. @private

Public Class Methods

# File rspec-core/lib/rspec/core/example_status_persister.rb, line 144
def self.dump(examples)
  new(examples).dump
end
# File rspec-core/lib/rspec/core/example_status_persister.rb, line 148
def initialize(examples)
  @examples = examples
end

Public Instance Methods

# File rspec-core/lib/rspec/core/example_status_persister.rb, line 152
def dump
  return nil if @examples.empty?
  (formatted_header_rows + formatted_value_rows).join("\n") << "\n"
end