Module: Console::Colors
- Defined in:
- lib/console-colors.rb,
lib/console-colors/version.rb
Constant Summary collapse
- COLORS_CONSTANT =
{ red: "\e[1m\e[31m", green: "\e[1m\e[32m", blue: "\e[1m\e[36m", dark_red: "\e[31m", dark_green: "\e[32m", yellow: "\e[33m", dark_blue: "\e[34m", pink: "\e[35m", turquoise: "\e[36m", white: "\e[37m", blink: "\e[5m", underline: "\e[4m", }
- MAJOR =
0
- MINOR =
0
- TINY =
2
- VERSION =
[MAJOR, MINOR, TINY].compact.join('.')
Class Method Summary collapse
Class Method Details
.ansi_color(text, code) ⇒ Object
20 21 22 |
# File 'lib/console-colors.rb', line 20 def ansi_color(text, code) "#{code}#{text}\e[0m" end |