Commit 7a94d02e authored by Akira Yumiyama's avatar Akira Yumiyama

add IO#print

parent f89ee88a
...@@ -262,6 +262,15 @@ class IO ...@@ -262,6 +262,15 @@ class IO
nil nil
end end
def print(*args)
i = 0
len = args.size
while i < len
write args[i].to_s
i += 1
end
end
def printf(*args) def printf(*args)
write sprintf(*args) write sprintf(*args)
nil nil
......
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