Class: Kolor::Enum::Background

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

#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

#blackKolor::Enum::Background

Returns black background (ANSI 40).

Returns:



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

entry :black,   40

#blueKolor::Enum::Background

Returns blue background (ANSI 44).

Returns:



21
# File 'lib/kolor/enum/background.rb', line 21

entry :blue,    44

#cyanKolor::Enum::Background

Returns cyan background (ANSI 46).

Returns:



27
# File 'lib/kolor/enum/background.rb', line 27

entry :cyan,    46

#greenKolor::Enum::Background

Returns green background (ANSI 42).

Returns:



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

entry :green,   42

#magentaKolor::Enum::Background

Returns magenta background (ANSI 45).

Returns:



24
# File 'lib/kolor/enum/background.rb', line 24

entry :magenta, 45

#redKolor::Enum::Background

Returns red background (ANSI 41).

Returns:



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

entry :red,     41

#whiteKolor::Enum::Background

Returns white background (ANSI 47).

Returns:



30
# File 'lib/kolor/enum/background.rb', line 30

entry :white,   47

#yellowKolor::Enum::Background

Returns yellow background (ANSI 43).

Returns:



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

entry :yellow,  43