Sha256: ff14e05f4b8da51a377799e8467191bedd762515ccdc5e1bf0b41fa862992e38
Contents?: true
Size: 713 Bytes
Versions: 207
Compression:
Stored size: 713 Bytes
Contents
module Sprout #:nodoc: class Log #:nodoc: @@debug = false @@output = '' @@printout = '' def Log.debug=(debug) @@debug = debug end def Log.debug return @@debug end def Log.puts(msg) @@output << msg + "\n" Log.flush end def Log.print(msg) @@printout << msg Log.flush_print end def Log.printf(msg) @@printout << msg Log.flush_print end def Log.flush_print if(!Log.debug) $stdout.print @@printout @@printout = '' end end def Log.flush if(!Log.debug) $stdout.puts @@output @@output = '' end end end end
Version data entries
207 entries across 207 versions & 1 rubygems