Sha256: 6ac55a3bc27c9229f89740f458affc8f103b7f2f2f653d1c2cd4f968d1c594d4

Contents?: true

Size: 334 Bytes

Versions: 12

Compression:

Stored size: 334 Bytes

Contents

require 'forwardable'

module CutePrint

  # Writing to an instance of this class, rather than to an instance
  # variable that was set to $stderr, allows the tests to capture
  # output by assigning to $stderr.
  # @api private
  class StderrOut

    extend Forwardable

    def_delegators :$stderr,
    :puts,
    :print

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cute_print-1.4.0 lib/cute_print/stderr_out.rb
cute_print-1.3.0 lib/cute_print/stderr_out.rb
cute_print-1.2.0 lib/cute_print/stderr_out.rb
cute_print-1.1.4 lib/cute_print/stderr_out.rb
cute_print-1.1.3 lib/cute_print/stderr_out.rb
cute_print-1.1.2 lib/cute_print/stderr_out.rb
cute_print-1.1.1 lib/cute_print/stderr_out.rb
cute_print-1.1.0 lib/cute_print/stderr_out.rb
cute_print-1.0.1 lib/cute_print/stderr_out.rb
cute_print-1.0.0 lib/cute_print/stderr_out.rb
cute_print-0.4.0 lib/cute_print/stderr_out.rb
cute_print-0.3.0 lib/cute_print/stderr_out.rb