Module: StreamCapture

Defined in:
lib/stream_capture.rb,
lib/stream_capture/core.rb,
lib/stream_capture/version.rb

Overview

Stream capture

Defined Under Namespace

Classes: Core, NoBlockExistsError

Constant Summary collapse

VERSION =
'1.0.8'

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.std_bothObject



53
54
55
# File 'lib/stream_capture.rb', line 53

def std_both(...)
  StreamCapture::Core.new.std_both(...)
end

.stderrObject



49
50
51
# File 'lib/stream_capture.rb', line 49

def stderr(...)
  StreamCapture::Core.new.stderr(...)
end

.stdoutObject



45
46
47
# File 'lib/stream_capture.rb', line 45

def stdout(...)
  StreamCapture::Core.new.stdout(...)
end

Instance Method Details

#capture_std_bothObject



40
41
42
# File 'lib/stream_capture.rb', line 40

def capture_std_both(...)
  StreamCapture.std_both(...)
end

#capture_stderrObject



36
37
38
# File 'lib/stream_capture.rb', line 36

def capture_stderr(...)
  StreamCapture.stderr(...)
end

#capture_stdoutObject



32
33
34
# File 'lib/stream_capture.rb', line 32

def capture_stdout(...)
  StreamCapture.stdout(...)
end