Class: Yell::Adapters::Io
- Includes:
- Formatter::Helpers
- Defined in:
- lib/yell/adapters/io.rb
Constant Summary collapse
- Colors =
The possible unix log colors
{ 0 => "\e[32;1m", # green;bold # 1 => "\e[0m", # white 2 => "\e[33;1m", # yello;bold 3 => "\e[31;1m", # red;bold 4 => "\e[35;1m", # magenta;bold 5 => "\e[36m", # cyan -1 => "\e[0m" # NONE }
Instance Attribute Summary collapse
-
#colors ⇒ Object
Returns the value of attribute colors.
Attributes included from Formatter::Helpers
Attributes included from Level::Helpers
Instance Method Summary collapse
-
#colorize! ⇒ Object
Shortcut to enable colors.
Methods inherited from Base
#close, close, #initialize, setup, write, #write
Constructor Details
This class inherits a constructor from Yell::Adapters::Base
Instance Attribute Details
#colors ⇒ Object
Returns the value of attribute colors.
48 49 50 |
# File 'lib/yell/adapters/io.rb', line 48 def colors @colors end |
Instance Method Details
#colorize! ⇒ Object
Shortcut to enable colors
51 |
# File 'lib/yell/adapters/io.rb', line 51 def colorize!; @colors = true; end |