Sha256: 404acc6453bdfdd783a986d4809c8def0c1cfb60050d37b6ed5caec0c4d9ded5
Contents?: true
Size: 382 Bytes
Versions: 3
Compression:
Stored size: 382 Bytes
Contents
class StreamWrapper def stdout_override(&fnc) @stdout_overide_fnc = fnc end def stdout_puts(string) if @stdout_overide_fnc @stdout_overide_fnc.call(string) else $stdout.puts(string) end end def stdout_flush $stdout.flush end def stderr_puts(string) $stderr.puts(string) end def stderr_flush $stderr.flush end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ceedling-0.31.1 | lib/ceedling/stream_wrapper.rb |
ceedling-0.31.0 | lib/ceedling/stream_wrapper.rb |
ceedling-0.30.0 | lib/ceedling/stream_wrapper.rb |