class Strut::ReportPrettyFormatter

Public Class Methods

new(lines) click to toggle source
# File lib/strut/report_pretty_formatter.rb, line 8
def initialize(lines)
  @lines = lines
end

Public Instance Methods

format(report) click to toggle source
# File lib/strut/report_pretty_formatter.rb, line 12
def format(report)
  begin
    out = StringIO.new
    $stdout = out
    print_report_to_stdout(report)
  ensure
    $stdout = STDOUT
  end
  out.string
end
print_annotated_line(annotations, line) click to toggle source
print_error_line(line, line_fg, line_bg, message, message_fg, message_bg) click to toggle source
print_errors(report) click to toggle source
print_exception_line(line, message) click to toggle source
print_fail_line(line, message) click to toggle source
print_line(line, foreground, background) click to toggle source
print_line_with_annotations(line, annotations) click to toggle source
print_ok_line(line) click to toggle source
print_report_to_stdout(report) click to toggle source
print_unannotated_line(line) click to toggle source