class Object
Public Instance Methods
capture_stdout(&block)
click to toggle source
# File lib/creq/repository.rb, line 5 def capture_stdout &block old_stdout = $stdout $stdout = StringIO.new block.call $stdout.string ensure $stdout = old_stdout end