Class: Spade::Console

Inherits:
Object
  • Object
show all
Defined in:
lib/spade/console.rb

Instance Method Summary collapse

Instance Method Details

#debug(*args) ⇒ Object



12
13
14
15
# File 'lib/spade/console.rb', line 12

def debug(*args)
  puts "\033[35mDEBUG: #{args * ','}\033[m"
  nil
end

#error(*args) ⇒ Object



22
23
24
25
# File 'lib/spade/console.rb', line 22

def error(*args)
  puts "\033[31mERROR: #{args * ','}\033[m"
  nil
end

#info(*args) ⇒ Object



17
18
19
20
# File 'lib/spade/console.rb', line 17

def info(*args)
  puts args * ','
  nil
end

#log(*args) ⇒ Object



32
33
34
35
# File 'lib/spade/console.rb', line 32

def log(*args)
  puts args * ','
  nil
end

#warn(*args) ⇒ Object



27
28
29
30
# File 'lib/spade/console.rb', line 27

def warn(*args)
  puts "\033[33mWARN: #{args * ','}\033[m"
  nil
end