Commit daa65c15 authored by Tomoyuki Sahara's avatar Tomoyuki Sahara

add dummy IO#flush for better compatibility with CRuby.

parent 40c52f58
......@@ -41,6 +41,11 @@ class IO
end
end
def flush
# mruby-io always writes immediately (no output buffer).
self
end
def write(string)
str = string.is_a?(String) ? string : string.to_s
return str.size unless str.size > 0
......
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