Sha256: ade85e1de13291edc5679b6db8572550a06dc0e41296a93fc3af4be3bc78436c
Contents?: true
Size: 401 Bytes
Versions: 22
Compression:
Stored size: 401 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
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
ppl-1.18.0 | lib/ppl/application/output.rb |
ppl-1.17.2 | lib/ppl/application/output.rb |