Class: Smith::Doctor::Printer
- Inherits:
-
Object
- Object
- Smith::Doctor::Printer
- Defined in:
- lib/smith/doctor/printer.rb
Constant Summary collapse
- CLEAR =
"\e[0m"- BOLD =
"\e[1m"- RED =
"\e[31m"- GREEN =
"\e[32m"- YELLOW =
"\e[33m"- CYAN =
"\e[36m"- WHITE =
"\e[37m"- ICONS =
{ pass: "\u2713", fail: "\u2717", warn: "!", skip: "-" }.freeze
- COLORS =
{ pass: GREEN, fail: RED, warn: YELLOW, skip: CYAN }.freeze
Instance Method Summary collapse
-
#initialize(report, io: $stdout) ⇒ Printer
constructor
A new instance of Printer.
- #print ⇒ Object
Constructor Details
#initialize(report, io: $stdout) ⇒ Printer
Returns a new instance of Printer.
17 18 19 20 |
# File 'lib/smith/doctor/printer.rb', line 17 def initialize(report, io: $stdout) @report = report @io = io end |