Class: Packwerk::OutputStyles::Coloured

Inherits:
Object
  • Object
show all
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

: -> String



25
26
27
28
# File 'lib/packwerk/output_styles/coloured.rb', line 25

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

#filenameObject

: -> String



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

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

#resetObject

: -> String



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

def reset
  "\033[m"
end