From b462ef450665141a38978d5b31b5550a60db4e6b Mon Sep 17 00:00:00 2001 From: ksss Date: Sun, 7 Aug 2016 15:58:39 +0900 Subject: Enable option :in, :out, :err --- mrblib/io.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mrblib') diff --git a/mrblib/io.rb b/mrblib/io.rb index 9644c2396..7e6ed9b1d 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 -- cgit v1.2.3