Sha256: 52bcb8e46fa7ef8850f8da38057c69e58441cc96e234fef7d9791c66e14f542d
Contents?: true
Size: 400 Bytes
Versions: 5
Compression:
Stored size: 400 Bytes
Contents
class Ppl::Application::Output attr_accessor :stdout attr_accessor :stderr def initialize(stdout, stderr) @stdout = stdout @stderr = stderr end def error(string) @stderr.puts sanitise(string) end def line(string) @stdout.puts sanitise(string) true end private def sanitise(string) unless string.nil? string.to_s.delete "\r" end end end
Version data entries
5 entries across 5 versions & 1 rubygems