Class: Plexts::TermColor
- Inherits:
-
Object
- Object
- Plexts::TermColor
- Defined in:
- lib/plexts/to_console.rb
Class Method Summary collapse
- .blue ⇒ Object
- .c(num) ⇒ Object
- .cyan ⇒ Object
- .green ⇒ Object
- .magenta ⇒ Object
- .red ⇒ Object
- .reset ⇒ Object
- .white ⇒ Object
- .yellow ⇒ Object
Class Method Details
.blue ⇒ Object
64 |
# File 'lib/plexts/to_console.rb', line 64 def blue ; c 34; end |
.c(num) ⇒ Object
69 70 71 |
# File 'lib/plexts/to_console.rb', line 69 def c(num) "\e[#{num.to_s}m" end |
.cyan ⇒ Object
66 |
# File 'lib/plexts/to_console.rb', line 66 def cyan ; c 36; end |
.green ⇒ Object
62 |
# File 'lib/plexts/to_console.rb', line 62 def green ; c 32; end |
.magenta ⇒ Object
65 |
# File 'lib/plexts/to_console.rb', line 65 def magenta ; c 35; end |
.red ⇒ Object
61 |
# File 'lib/plexts/to_console.rb', line 61 def red ; c 31; end |
.reset ⇒ Object
59 |
# File 'lib/plexts/to_console.rb', line 59 def reset ; c 0 ; end |
.white ⇒ Object
67 |
# File 'lib/plexts/to_console.rb', line 67 def white ; c 37; end |
.yellow ⇒ Object
63 |
# File 'lib/plexts/to_console.rb', line 63 def yellow ; c 33; end |