Class: Kolor::Enum::Style
- Inherits:
-
Kolor::Enum
- Object
- Kolor::Enum
- Kolor::Enum::Style
- Defined in:
- lib/kolor/enum/style.rb
Overview
Kolor::Enum::Style defines ANSI text style codes. These control formatting like bold, underline, and reversed text.
Instance Attribute Summary
Attributes inherited from Kolor::Enum
Instance Method Summary collapse
-
#bold ⇒ Kolor::Enum::Style
Bold text (ANSI 1).
-
#clear ⇒ Kolor::Enum::Style
Reset all styles (ANSI 0).
-
#reversed ⇒ Kolor::Enum::Style
Reversed foreground/background (ANSI 7).
-
#underline ⇒ Kolor::Enum::Style
Underlined text (ANSI 4).
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
#bold ⇒ Kolor::Enum::Style
Returns bold text (ANSI 1).
12 |
# File 'lib/kolor/enum/style.rb', line 12 entry :bold, 1 |
#clear ⇒ Kolor::Enum::Style
Returns reset all styles (ANSI 0).
9 |
# File 'lib/kolor/enum/style.rb', line 9 entry :clear, 0 |
#reversed ⇒ Kolor::Enum::Style
Returns reversed foreground/background (ANSI 7).
18 |
# File 'lib/kolor/enum/style.rb', line 18 entry :reversed, 7 |
#underline ⇒ Kolor::Enum::Style
Returns underlined text (ANSI 4).
15 |
# File 'lib/kolor/enum/style.rb', line 15 entry :underline, 4 |