Class: Kolor::Enum::Background
- Inherits:
-
Kolor::Enum
- Object
- Kolor::Enum
- Kolor::Enum::Background
- Defined in:
- lib/kolor/enum/background.rb
Overview
Kolor::Enum::Background defines ANSI background 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::Background
Black background (ANSI 40).
-
#blue ⇒ Kolor::Enum::Background
Blue background (ANSI 44).
-
#cyan ⇒ Kolor::Enum::Background
Cyan background (ANSI 46).
-
#green ⇒ Kolor::Enum::Background
Green background (ANSI 42).
-
#magenta ⇒ Kolor::Enum::Background
Magenta background (ANSI 45).
-
#red ⇒ Kolor::Enum::Background
Red background (ANSI 41).
-
#white ⇒ Kolor::Enum::Background
White background (ANSI 47).
-
#yellow ⇒ Kolor::Enum::Background
Yellow background (ANSI 43).
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::Background
Returns black background (ANSI 40).
9 |
# File 'lib/kolor/enum/background.rb', line 9 entry :black, 40 |
#blue ⇒ Kolor::Enum::Background
Returns blue background (ANSI 44).
21 |
# File 'lib/kolor/enum/background.rb', line 21 entry :blue, 44 |
#cyan ⇒ Kolor::Enum::Background
Returns cyan background (ANSI 46).
27 |
# File 'lib/kolor/enum/background.rb', line 27 entry :cyan, 46 |
#green ⇒ Kolor::Enum::Background
Returns green background (ANSI 42).
15 |
# File 'lib/kolor/enum/background.rb', line 15 entry :green, 42 |
#magenta ⇒ Kolor::Enum::Background
Returns magenta background (ANSI 45).
24 |
# File 'lib/kolor/enum/background.rb', line 24 entry :magenta, 45 |
#red ⇒ Kolor::Enum::Background
Returns red background (ANSI 41).
12 |
# File 'lib/kolor/enum/background.rb', line 12 entry :red, 41 |
#white ⇒ Kolor::Enum::Background
Returns white background (ANSI 47).
30 |
# File 'lib/kolor/enum/background.rb', line 30 entry :white, 47 |
#yellow ⇒ Kolor::Enum::Background
Returns yellow background (ANSI 43).
18 |
# File 'lib/kolor/enum/background.rb', line 18 entry :yellow, 43 |