Class: Spade::Runtime::Console
- Inherits:
-
Object
- Object
- Spade::Runtime::Console
- Defined in:
- lib/spade/runtime/console.rb
Instance Method Summary collapse
- #debug(*args) ⇒ Object
- #error(*args) ⇒ Object
- #info(*args) ⇒ Object
- #log(*args) ⇒ Object
- #warn(*args) ⇒ Object
Instance Method Details
#debug(*args) ⇒ Object
12 13 14 15 |
# File 'lib/spade/runtime/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/runtime/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/runtime/console.rb', line 17 def info(*args) puts args * ',' nil end |
#log(*args) ⇒ Object
32 33 34 35 |
# File 'lib/spade/runtime/console.rb', line 32 def log(*args) puts args * ',' nil end |
#warn(*args) ⇒ Object
27 28 29 30 |
# File 'lib/spade/runtime/console.rb', line 27 def warn(*args) puts "\033[33mWARN: #{args * ','}\033[m" nil end |