Class: Zold::Log
- Inherits:
-
Object
- Object
- Zold::Log
- Defined in:
- lib/zold/log.rb
Overview
Logging
Defined Under Namespace
Instance Method Summary collapse
Instance Method Details
#debug(msg) ⇒ Object
32 33 34 |
# File 'lib/zold/log.rb', line 32 def debug(msg) # nothing end |
#debug? ⇒ Boolean
36 37 38 |
# File 'lib/zold/log.rb', line 36 def debug? false end |
#error(msg) ⇒ Object
48 49 50 |
# File 'lib/zold/log.rb', line 48 def error(msg) puts "#{Rainbow('ERROR').red}: #{msg}" end |
#info(msg) ⇒ Object
40 41 42 |
# File 'lib/zold/log.rb', line 40 def info(msg) puts msg end |
#info? ⇒ Boolean
44 45 46 |
# File 'lib/zold/log.rb', line 44 def info? true end |