Class: Kolor::Enum::Style

Inherits:
Kolor::Enum show all
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

#value

Instance Method Summary collapse

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

#boldKolor::Enum::Style

Returns bold text (ANSI 1).

Returns:



12
# File 'lib/kolor/enum/style.rb', line 12

entry :bold,      1

#clearKolor::Enum::Style

Returns reset all styles (ANSI 0).

Returns:



9
# File 'lib/kolor/enum/style.rb', line 9

entry :clear,     0

#reversedKolor::Enum::Style

Returns reversed foreground/background (ANSI 7).

Returns:



18
# File 'lib/kolor/enum/style.rb', line 18

entry :reversed,  7

#underlineKolor::Enum::Style

Returns underlined text (ANSI 4).

Returns:



15
# File 'lib/kolor/enum/style.rb', line 15

entry :underline, 4