diff options
| author | ksss <[email protected]> | 2016-08-07 15:58:39 +0900 |
|---|---|---|
| committer | ksss <[email protected]> | 2016-08-07 21:21:01 +0900 |
| commit | b462ef450665141a38978d5b31b5550a60db4e6b (patch) | |
| tree | aee07c67b90f27d02d40d1a61329664eb44bf188 /mrblib | |
| parent | 93d481d4b49829e37b1f501c7307663c6327dfab (diff) | |
| download | mruby-b462ef450665141a38978d5b31b5550a60db4e6b.tar.gz mruby-b462ef450665141a38978d5b31b5550a60db4e6b.zip | |
Enable option :in, :out, :err
Diffstat (limited to 'mrblib')
| -rw-r--r-- | mrblib/io.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
