Class: Zold::Log::Regular

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

Overview

Regular log

Instance Method Summary collapse

Instance Method Details

#debug(msg) ⇒ Object


63
64
65
# File 'lib/zold/log.rb', line 63

def debug(msg)
  # nothing
end

#debug?Boolean

Returns:

  • (Boolean)

67
68
69
# File 'lib/zold/log.rb', line 67

def debug?
  false
end

#error(msg) ⇒ Object


79
80
81
# File 'lib/zold/log.rb', line 79

def error(msg)
  print("#{Rainbow('ERROR').red}: #{msg}")
end

#info(msg) ⇒ Object


71
72
73
# File 'lib/zold/log.rb', line 71

def info(msg)
  print(msg)
end

#info?Boolean

Returns:

  • (Boolean)

75
76
77
# File 'lib/zold/log.rb', line 75

def info?
  true
end