Class: Greener::Formatter::Progress

Inherits:
BaseFormatter show all
Defined in:
lib/greener/formatter/progress.rb

Overview

Print progress in real-time

Instance Method Summary collapse

Methods inherited from BaseFormatter

#file_started, #initialize, #started

Constructor Details

This class inherits a constructor from Greener::Formatter::BaseFormatter

Instance Method Details

#file_finished(violations) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/greener/formatter/progress.rb', line 7

def file_finished(violations)
  if violations.empty?
    print "."
  else
    print "F"
  end
end

#finished(_violations) ⇒ Object



15
16
17
18
# File 'lib/greener/formatter/progress.rb', line 15

def finished(_violations)
  puts ""
  puts ""
end