summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2016-08-08 09:38:22 +0900
committerGitHub <[email protected]>2016-08-08 09:38:22 +0900
commit9ccf03e5ae76a08538dbbd1e86a6a39f7d4610ca (patch)
treea670457d4e9b37b0dcfca87023d561574e7ede7d
parent93d481d4b49829e37b1f501c7307663c6327dfab (diff)
parent4cac5e9c70e9d73d97b77bc189ce7ac1f585b102 (diff)
downloadmruby-9ccf03e5ae76a08538dbbd1e86a6a39f7d4610ca.tar.gz
mruby-9ccf03e5ae76a08538dbbd1e86a6a39f7d4610ca.zip
Merge pull request #62 from ksss/global
Should use global variable
-rw-r--r--mrblib/io.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/mrblib/io.rb b/mrblib/io.rb
index 9644c2396..e688a32fe 100644
--- a/mrblib/io.rb
+++ b/mrblib/io.rb
@@ -380,22 +380,22 @@ $stderr = STDERR
module Kernel
def print(*args)
- STDOUT.print(*args)
+ $stdout.print(*args)
end
def puts(*args)
- STDOUT.puts(*args)
+ $stdout.puts(*args)
end
def printf(*args)
- STDOUT.printf(*args)
+ $stdout.printf(*args)
end
def gets(*args)
- STDIN.gets(*args)
+ $stdin.gets(*args)
end
def getc(*args)
- STDIN.getc(*args)
+ $stdin.getc(*args)
end
end