Class: Zold::Log

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

Overview

Logging

Defined Under Namespace

Classes: Quiet, Verbose

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

Returns:

  • (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

Returns:

  • (Boolean)


44
45
46
# File 'lib/zold/log.rb', line 44

def info?
  true
end