Class: Packwerk::OutputStyles::Coloured
- Inherits:
-
Object
- Object
- Packwerk::OutputStyles::Coloured
- 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
-
#error ⇒ Object
: -> String.
-
#filename ⇒ Object
: -> String.
-
#reset ⇒ Object
: -> String.
Instance Method Details
#error ⇒ Object
: -> String
25 26 27 28 |
# File 'lib/packwerk/output_styles/coloured.rb', line 25 def error # 31 is foreground red "\033[31m" end |
#filename ⇒ Object
: -> String
18 19 20 21 |
# File 'lib/packwerk/output_styles/coloured.rb', line 18 def filename # 36 is foreground cyan "\033[36m" end |
#reset ⇒ Object
: -> String
12 13 14 |
# File 'lib/packwerk/output_styles/coloured.rb', line 12 def reset "\033[m" end |