Binary package “ruby-capture-output” in ubuntu jammy

Ruby library to grab given IO output and return it as a string

 Provides Capture.output, Capture.stdout and Capture.stderr methods that can be
 used to grab output generated by current or spawned process.
 .
 This is useful for testing when you need to start a process and check its
 output or when you need to check current process output.