Spork::CustomIOStreams

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

Public Class Methods

included(klass) click to toggle source
# File lib/spork/custom_io_streams.rb, line 4
def self.included(klass)
  klass.send(:extend, ::Spork::CustomIOStreams::ClassMethods)
end

Public Instance Methods

stderr() click to toggle source
# File lib/spork/custom_io_streams.rb, line 8
def stderr
  self.class.stderr
end
stdout() click to toggle source
# File lib/spork/custom_io_streams.rb, line 12
def stdout
  self.class.stdout
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.