Class: Pktool::Log
- Inherits:
-
Object
- Object
- Pktool::Log
- Defined in:
- lib/log.rb
Class Method Summary collapse
Class Method Details
.error(str) ⇒ Object
11 12 13 |
# File 'lib/log.rb', line 11 def self.error(str) puts("<bold><red>[ERROR]</red></bold> #{str.escape}".termcolor) end |
.warn(str) ⇒ Object
7 8 9 |
# File 'lib/log.rb', line 7 def self.warn(str) puts str end |