Sha256: 8207a8662425d7abcae3da0612dc771e43e0d4f9339bc65e6391415f6a1b766f

Contents?: true

Size: 185 Bytes

Versions: 44

Compression:

Stored size: 185 Bytes

Contents

module Recording
  def self.stderr
    $stderr = recorder = StringIO.new
    begin
      yield
    ensure
      $stderr = STDERR
    end
    recorder.rewind
    recorder.read
  end
end

Version data entries

44 entries across 44 versions & 6 rubygems

Version Path
tarantula-0.1.8 lib/relevance/tarantula/recording.rb
tarantula-0.1.4 lib/relevance/tarantula/recording.rb
tarantula-0.2.0 lib/relevance/tarantula/recording.rb
tarantula-0.1.5 lib/relevance/tarantula/recording.rb