Captures the given stream and returns it:
stream = capture(:stdout) { puts 'notice' } stream # => "notice\n" stream = capture(:stderr) {登录查看完整内容
联系方式: