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



114
115
116
# File 'lib/zold/log.rb', line 114

def debug(msg)
  # nothing
end

#debug?Boolean

Returns:

  • (Boolean)


118
119
120
# File 'lib/zold/log.rb', line 118

def debug?
  false
end

#error(msg) ⇒ Object



130
131
132
# File 'lib/zold/log.rb', line 130

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

#info(msg) ⇒ Object



122
123
124
# File 'lib/zold/log.rb', line 122

def info(msg)
  print(msg)
end

#info?Boolean

Returns:

  • (Boolean)


126
127
128
# File 'lib/zold/log.rb', line 126

def info?
  true
end