From 7e08f5ad838c644ae08126d075e1316a68f82357 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 19 Jul 2009 23:05:51 +0200 Subject: implemented name in code/debug.rb --- code/debug.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'code/debug.rb') diff --git a/code/debug.rb b/code/debug.rb index 24216723..5281cb15 100644 --- a/code/debug.rb +++ b/code/debug.rb @@ -38,18 +38,19 @@ module Debug @@stream = stream || STDERR @@level = level || 3 + @@name = "#{@@name}: " @@stream.sync = true end ## Write something to the output stream. def self.write(str) - @@stream.write(str) + @@stream.write(@@name + str.to_s) return str end ## Write something to the output stream with a newline at the end. def self.puts(str) - @@stream.puts(str) + @@stream.puts(@@name + str.to_s) return str end -- cgit 1.4.1-2-gfad0 c7a3a2742c6c20dfd87010fb'>this commit Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/arc/charterm/planet-docs/doc/index.html
blob: 79d311c9e6eccee11f69f680d83769f4d0fc7b7c (plain) (tree)