module Focus::Formatter
Public Instance Methods
blue(string)
click to toggle source
# File lib/focus/formatter.rb, line 15 def blue(string) Paint[string, :blue] end
error(error)
click to toggle source
# File lib/focus/formatter.rb, line 11 def error(error) " " + red("!!! Error:") + " #{error}" end
ok()
click to toggle source
# File lib/focus/formatter.rb, line 23 def ok " " + Paint["OK", :green] end
pastel()
click to toggle source
# File lib/focus/formatter.rb, line 27 def pastel @pastel ||= Pastel.new end
red(string)
click to toggle source
# File lib/focus/formatter.rb, line 19 def red(string) Paint[string, :red, :bright] end
step(step)
click to toggle source
# File lib/focus/formatter.rb, line 7 def step(step) blue("==>") + " #{step}" end