Class: Syntaxer::ProgressBar

Inherits:
Object
  • Object
show all
Defined in:
lib/syntaxer/progress_bar.rb

Instance Method Summary collapse

Instance Method Details

#increment!(status) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/syntaxer/progress_bar.rb', line 4

def increment! status
  if status
    print ".".color(:green)
  else
    print "E".color(:red)
  end
end