summaryrefslogtreecommitdiffhomepage
path: root/mrblib
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2016-08-08 10:12:20 +0900
committerGitHub <[email protected]>2016-08-08 10:12:20 +0900
commitb341ee7c1217d314af673a280e099c222b1c5727 (patch)
treeed9699176c4e0a22f3fdec4bd4eab4995500d116 /mrblib
parent9ccf03e5ae76a08538dbbd1e86a6a39f7d4610ca (diff)
parentd2c1f4d10b29040aad3fbf38b2b27fe46e145e63 (diff)
downloadmruby-b341ee7c1217d314af673a280e099c222b1c5727.tar.gz
mruby-b341ee7c1217d314af673a280e099c222b1c5727.zip
Merge pull request #63 from ksss/opt
Enable option :in, :out, :err to IO.popen
Diffstat (limited to 'mrblib')
-rw-r--r--mrblib/io.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/mrblib/io.rb b/mrblib/io.rb
index e688a32fe..4bcf4f800 100644
--- a/mrblib/io.rb
+++ b/mrblib/io.rb
@@ -26,11 +26,11 @@ class IO
end
end
- def self.popen(command, mode = 'r', &block)
+ def self.popen(command, mode = 'r', opts={}, &block)
if !self.respond_to?(:_popen)
raise NotImplementedError, "popen is not supported on this platform"
end
- io = self._popen(command, mode)
+ io = self._popen(command, mode, opts)
return io unless block
begin