Sha256: 8dd215989f2b74abea00dc12e3bdb287fed7cabc9a75a8e7bb02afc298428aa7
Contents?: true
Size: 474 Bytes
Versions: 131
Compression:
Stored size: 474 Bytes
Contents
# This class is mainly used for testing. # When included (and used), it gives us an opportunity to stub out the output streams used for a given class module Spork::CustomIOStreams def self.included(klass) klass.send(:extend, ::Spork::CustomIOStreams::ClassMethods) end def stderr self.class.stderr end def stdout self.class.stdout end module ClassMethods def stderr $stderr end def stdout $stdout end end end
Version data entries
131 entries across 131 versions & 12 rubygems