Class: TTY::Color

Inherits:
Object
  • Object
show all
Defined in:
lib/tty/color.rb

Constant Summary collapse

CLEAR =

Embed in a String to clear all previous ANSI sequences.

"\e[0m""]"
BOLD =

The start of an ANSI bold sequence.

"\e[1m""]"

Instance Attribute Summary collapse

Instance Attribute Details

#enabledObject (readonly)

Returns the value of attribute enabled.



11
12
13
# File 'lib/tty/color.rb', line 11

def enabled
  @enabled
end