lib/darkext/io.rb in darkhelmet-darkext-0.1.0 vs lib/darkext/io.rb in darkhelmet-darkext-0.2.0
- old
+ new
@@ -1,7 +1,7 @@
require 'darkext/hash'
-module IO
+module DarkIO
# Runs a block and captures the output it generates
def self.capture_output(opts = { }) # yield e
opts.with_defaults!(:stdout => true, :stderr => true)
cout,cerr = opts[:stdout],opts[:stderr]
return if !cout && !cerr