class StreamWrapper
Public Instance Methods
stderr_flush()
click to toggle source
# File lib/ceedling/stream_wrapper.rb, line 24 def stderr_flush $stderr.flush end
stderr_puts(string)
click to toggle source
# File lib/ceedling/stream_wrapper.rb, line 20 def stderr_puts(string) $stderr.puts(string) end
stdout_flush()
click to toggle source
# File lib/ceedling/stream_wrapper.rb, line 16 def stdout_flush $stdout.flush end
stdout_override(&fnc)
click to toggle source
# File lib/ceedling/stream_wrapper.rb, line 4 def stdout_override(&fnc) @stdout_overide_fnc = fnc end
stdout_puts(string)
click to toggle source
# File lib/ceedling/stream_wrapper.rb, line 8 def stdout_puts(string) if @stdout_overide_fnc @stdout_overide_fnc.call(string) else $stdout.puts(string) end end