Class: Spoom::Color
- Inherits:
-
Object
- Object
- Spoom::Color
- Defined in:
- lib/spoom/colors.rb
Constant Summary collapse
- CLEAR =
: Color
new("\e[0m")
- BOLD =
: Color
new("\e[1m")
- BLACK =
: Color
new("\e[30m")
- RED =
: Color
new("\e[31m")
- GREEN =
: Color
new("\e[32m")
- YELLOW =
: Color
new("\e[33m")
- BLUE =
: Color
new("\e[34m")
- MAGENTA =
: Color
new("\e[35m")
- CYAN =
: Color
new("\e[36m")
- WHITE =
: Color
new("\e[37m")
- LIGHT_BLACK =
: Color
new("\e[90m")
- LIGHT_RED =
: Color
new("\e[91m")
- LIGHT_GREEN =
: Color
new("\e[92m")
- LIGHT_YELLOW =
: Color
new("\e[93m")
- LIGHT_BLUE =
: Color
new("\e[94m")
- LIGHT_MAGENTA =
: Color
new("\e[95m")
- LIGHT_CYAN =
: Color
new("\e[96m")
- LIGHT_WHITE =
: Color
new("\e[97m")
Instance Attribute Summary collapse
-
#ansi_code ⇒ Object
readonly
: String.
Instance Method Summary collapse
-
#initialize(ansi_code) ⇒ Color
constructor
: (String) -> void.
Constructor Details
#initialize(ansi_code) ⇒ Color
: (String) -> void
10 11 12 |
# File 'lib/spoom/colors.rb', line 10 def initialize(ansi_code) @ansi_code = ansi_code end |
Instance Attribute Details
#ansi_code ⇒ Object (readonly)
: String
7 8 9 |
# File 'lib/spoom/colors.rb', line 7 def ansi_code @ansi_code end |