Class Yell::Adapters::Io
In: lib/yell/adapters/io.rb
Parent: Yell::Adapters::Base

Methods

colorize!  

Included Modules

Yell::Helpers::Formatter

Constants

TTYColors = { 0 => "\033[1;32m", # green 1 => "\033[0m", # normal 2 => "\033[1;33m", # yellow 3 => "\033[1;31m", # red 4 => "\033[1;35m", # magenta 5 => "\033[1;36m", # cyan -1 => "\033[0m"   The possible unix log colors

Attributes

colors  [RW]  Sets colored output on or off (default off)

@example Enable colors

  colors = true

@example Disable colors

  colors = false
sync  [RW]  Sets the “sync mode” to true or false.

When true (default), every log event is immediately written to the file. When false, the log event is buffered internally.

Public Instance methods

Shortcut to enable colors.

@example

  colorize!

[Validate]