Class: SYMBOLS::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/symbols.rb

Instance Method Summary collapse

Constructor Details

#initializeLog

Returns a new instance of Log.



31
32
33
34
35
36
37
# File 'lib/symbols.rb', line 31

def initialize
    @SYMBOL = if main_supported
                MAIN_SYMBOLS
              else
                FALLBACK_SYMBOLS
              end     
end

Instance Method Details

#errorObject



51
52
53
# File 'lib/symbols.rb', line 51

def error
    @SYMBOL[:error].colorize(:red)
end

#infoObject



39
40
41
# File 'lib/symbols.rb', line 39

def info
    @SYMBOL[:info].colorize(:blue)
end

#successObject



43
44
45
# File 'lib/symbols.rb', line 43

def success
    @SYMBOL[:success].colorize(:green)
end

#warningObject



47
48
49
# File 'lib/symbols.rb', line 47

def warning
    @SYMBOL[:warning].colorize(:yellow)
end