Class: Packwerk::OutputStyles::Coloured

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Packwerk::OutputStyle
Defined in:
lib/packwerk/output_styles/coloured.rb

Overview

See en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit for ANSI escape colour codes

Instance Method Summary collapse

Instance Method Details

#errorObject



23
24
25
26
# File 'lib/packwerk/output_styles/coloured.rb', line 23

def error
  # 31 is foreground red
  "\033[31m"
end

#filenameObject



17
18
19
20
# File 'lib/packwerk/output_styles/coloured.rb', line 17

def filename
  # 36 is foreground cyan
  "\033[36m"
end

#resetObject



12
13
14
# File 'lib/packwerk/output_styles/coloured.rb', line 12

def reset
  "\033[m"
end