Module: Remote::Printer
- Defined in:
- lib/remote/printer.rb
Instance Method Summary collapse
Instance Method Details
#log(str) ⇒ Object
3 4 5 |
# File 'lib/remote/printer.rb', line 3 def log(str) $stderr << "#{str}\n" end |
#status(where, what) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/remote/printer.rb', line 7 def status(where, what) c1 = "\033[0;30m" c2 = "\033[0;33m" c0 = "\033[0m" log "#{c1}[#{where}]$#{c2} #{what}#{c0}" end |