Class: Console
- Inherits:
-
Object
- Object
- Console
- Defined in:
- lib/share/console.rb
Overview
Console used by Client and Server
Instance Method Summary collapse
Instance Method Details
#dbg(message) ⇒ Object
21 22 23 24 25 |
# File 'lib/share/console.rb', line 21 def dbg() return unless DEBUG log_type('debug'.pink, ) end |
#err(message) ⇒ Object
13 14 15 |
# File 'lib/share/console.rb', line 13 def err() log_type('error'.red, ) end |
#log(message) ⇒ Object
9 10 11 |
# File 'lib/share/console.rb', line 9 def log() log_type('log', ) end |
#wrn(message) ⇒ Object
17 18 19 |
# File 'lib/share/console.rb', line 17 def wrn() log_type('warning'.yellow, ) end |