Class: Kolor::Enum::Foreground
- Inherits:
-
Kolor::Enum
- Object
- Kolor::Enum
- Kolor::Enum::Foreground
- Defined in:
- lib/kolor/enum/foreground.rb
Overview
Kolor::Enum::Foreground defines ANSI foreground color codes. Each entry maps a symbolic name to its corresponding ANSI value.
Instance Attribute Summary
Attributes inherited from Kolor::Enum
Instance Method Summary collapse
-
#black ⇒ Kolor::Enum::Foreground
Black foreground (ANSI 30).
-
#blue ⇒ Kolor::Enum::Foreground
Blue foreground (ANSI 34).
-
#cyan ⇒ Kolor::Enum::Foreground
Cyan foreground (ANSI 36).
-
#green ⇒ Kolor::Enum::Foreground
Green foreground (ANSI 32).
-
#magenta ⇒ Kolor::Enum::Foreground
Magenta foreground (ANSI 35).
-
#red ⇒ Kolor::Enum::Foreground
Red foreground (ANSI 31).
-
#white ⇒ Kolor::Enum::Foreground
White foreground (ANSI 37).
-
#yellow ⇒ Kolor::Enum::Foreground
Yellow foreground (ANSI 33).
Methods inherited from Kolor::Enum
#==, [], all, entry, #hash, #initialize, #inspect, keys, name_for, remove, #to_s, #to_sym, type, values
Constructor Details
This class inherits a constructor from Kolor::Enum
Instance Method Details
#black ⇒ Kolor::Enum::Foreground
Returns black foreground (ANSI 30).
9 |
# File 'lib/kolor/enum/foreground.rb', line 9 entry :black, 30 |
#blue ⇒ Kolor::Enum::Foreground
Returns blue foreground (ANSI 34).
21 |
# File 'lib/kolor/enum/foreground.rb', line 21 entry :blue, 34 |
#cyan ⇒ Kolor::Enum::Foreground
Returns cyan foreground (ANSI 36).
27 |
# File 'lib/kolor/enum/foreground.rb', line 27 entry :cyan, 36 |
#green ⇒ Kolor::Enum::Foreground
Returns green foreground (ANSI 32).
15 |
# File 'lib/kolor/enum/foreground.rb', line 15 entry :green, 32 |
#magenta ⇒ Kolor::Enum::Foreground
Returns magenta foreground (ANSI 35).
24 |
# File 'lib/kolor/enum/foreground.rb', line 24 entry :magenta, 35 |
#red ⇒ Kolor::Enum::Foreground
Returns red foreground (ANSI 31).
12 |
# File 'lib/kolor/enum/foreground.rb', line 12 entry :red, 31 |
#white ⇒ Kolor::Enum::Foreground
Returns white foreground (ANSI 37).
30 |
# File 'lib/kolor/enum/foreground.rb', line 30 entry :white, 37 |
#yellow ⇒ Kolor::Enum::Foreground
Returns yellow foreground (ANSI 33).
18 |
# File 'lib/kolor/enum/foreground.rb', line 18 entry :yellow, 33 |