Sha256: f73480a4996ab239217b02e8dae64caf31d98326601365598b0361a063d2f810

Contents?: true

Size: 296 Bytes

Versions: 3

Compression:

Stored size: 296 Bytes

Contents

module Boom
  module Output

    def capture_output
      @output = ''
    end

    def captured_output
      @output
    end

    def output(s)
      @output << s
    end

    extend self
  end
end

# Intercept STDOUT and collect it
class Boom::Command


  def self.save!
    # no-op
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kaboom-0.3.3 test/output_interceptor.rb
kaboom-0.3.2 test/output_interceptor.rb
kaboom-0.3.1 test/output_interceptor.rb