Sha256: 385b93152362ba25801b53959cfcb3088d58c383ca5e9948b0ce0f1e13703fa4
Contents?: true
Size: 217 Bytes
Versions: 35
Compression:
Stored size: 217 Bytes
Contents
require "stringio" module CaptureIOHelper def capture_stdout(&blk) old = $stdout $stdout = io = StringIO.new yield io.string ensure $stdout = old end end
Version data entries
35 entries across 35 versions & 1 rubygems