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



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

def debug(msg)
  # nothing
end

#debug?Boolean

Returns:

  • (Boolean)


82
83
84
# File 'lib/zold/log.rb', line 82

def debug?
  false
end

#error(msg) ⇒ Object



94
95
96
# File 'lib/zold/log.rb', line 94

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

#info(msg) ⇒ Object



86
87
88
# File 'lib/zold/log.rb', line 86

def info(msg)
  print(msg)
end

#info?Boolean

Returns:

  • (Boolean)


90
91
92
# File 'lib/zold/log.rb', line 90

def info?
  true
end