Sha256: a5c87997664a7f6f6e0901f680ab3cc7fa5aee085792c36b5adb264c1d125280
Contents?: true
Size: 397 Bytes
Versions: 2
Compression:
Stored size: 397 Bytes
Contents
module Scrutinizer module Ocular class NullOutput def write(message) # Do nothing end end class MemorizedOutput attr_reader :output def initialize @output = '' end def write(message) @output += message end end class StdoutOutput def write(message) print(message) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scrutinizer-ocular-1.0.1 | lib/scrutinizer/ocular/output.rb |
scrutinizer-ocular-1.0.0 | lib/scrutinizer/ocular/output.rb |