Sha256: 689e78924e5adef3478d585634018de31611499d6a174c6cfaab8bf1d57d085f
Contents?: true
Size: 279 Bytes
Versions: 6
Compression:
Stored size: 279 Bytes
Contents
# encoding: utf-8 begin require "spec" rescue LoadError abort "You have to install rspec gem!" end require "stringio" def STDOUT.capture(&block) before = self $stdout = StringIO.new block.call $stdout.rewind output = $stdout.read $stdout = before output end
Version data entries
6 entries across 6 versions & 1 rubygems