Unverified Commit 20d01f11 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4778 from...

Merge pull request #4778 from shuujii/move-methods-of-Kernel-to-kernel.rb-from-io.rb-in-mruby-io-gem

Move methods of `Kernel` to `kernel.rb` from `io.rb` in `mruby-io` gem
parents e5f7b1d2 e5d767b1
...@@ -372,25 +372,3 @@ STDERR = IO.open(2, "w") ...@@ -372,25 +372,3 @@ STDERR = IO.open(2, "w")
$stdin = STDIN $stdin = STDIN
$stdout = STDOUT $stdout = STDOUT
$stderr = STDERR $stderr = STDERR
module Kernel
def print(*args)
$stdout.print(*args)
end
def puts(*args)
$stdout.puts(*args)
end
def printf(*args)
$stdout.printf(*args)
end
def gets(*args)
$stdin.gets(*args)
end
def getc(*args)
$stdin.getc(*args)
end
end
...@@ -12,4 +12,24 @@ module Kernel ...@@ -12,4 +12,24 @@ module Kernel
File.open(file, *rest, &block) File.open(file, *rest, &block)
end end
end end
def print(*args)
$stdout.print(*args)
end
def puts(*args)
$stdout.puts(*args)
end
def printf(*args)
$stdout.printf(*args)
end
def gets(*args)
$stdin.gets(*args)
end
def getc(*args)
$stdin.getc(*args)
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment