Class: SYMBOLS::Log
- Inherits:
-
Object
- Object
- SYMBOLS::Log
- Defined in:
- lib/symbols.rb
Instance Method Summary collapse
- #error ⇒ Object
- #info ⇒ Object
-
#initialize ⇒ Log
constructor
A new instance of Log.
- #success ⇒ Object
- #warning ⇒ Object
Constructor Details
#initialize ⇒ Log
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
#error ⇒ Object
51 52 53 |
# File 'lib/symbols.rb', line 51 def error @SYMBOL[:error].colorize(:red) end |
#info ⇒ Object
39 40 41 |
# File 'lib/symbols.rb', line 39 def info @SYMBOL[:info].colorize(:blue) end |
#success ⇒ Object
43 44 45 |
# File 'lib/symbols.rb', line 43 def success @SYMBOL[:success].colorize(:green) end |
#warning ⇒ Object
47 48 49 |
# File 'lib/symbols.rb', line 47 def warning @SYMBOL[:warning].colorize(:yellow) end |