Class: Wlog::WlogString

Inherits:
Object
  • Object
show all
Includes:
AnsiColors
Defined in:
lib/wlog/tech/wlog_string.rb

Overview

Author:

  • Simon Symeonidis

Constant Summary

Constants included from AnsiColors

AnsiColors::Black, AnsiColors::Blue, AnsiColors::Cyan, AnsiColors::Green, AnsiColors::Magenta, AnsiColors::Red, AnsiColors::White, AnsiColors::Yellow

Class Method Summary collapse

Class Method Details

.black(str) ⇒ Object



15
# File 'lib/wlog/tech/wlog_string.rb', line 15

def self.black(str); colorize(str,Black) end

.blue(str) ⇒ Object



13
# File 'lib/wlog/tech/wlog_string.rb', line 13

def self.blue(str); colorize(str,Blue) end

.cyan(str) ⇒ Object



16
# File 'lib/wlog/tech/wlog_string.rb', line 16

def self.cyan(str); colorize(str,Cyan) end

.green(str) ⇒ Object



12
# File 'lib/wlog/tech/wlog_string.rb', line 12

def self.green(str); colorize(str,Green) end

.magenta(str) ⇒ Object



11
# File 'lib/wlog/tech/wlog_string.rb', line 11

def self.magenta(str); colorize(str,Magenta) end

.red(str) ⇒ Object



9
# File 'lib/wlog/tech/wlog_string.rb', line 9

def self.red(str); colorize(str,Red) end

.white(str) ⇒ Object



14
# File 'lib/wlog/tech/wlog_string.rb', line 14

def self.white(str); colorize(str,White) end

.yellow(str) ⇒ Object



10
# File 'lib/wlog/tech/wlog_string.rb', line 10

def self.yellow(str); colorize(str,Yellow) end