Skip to content

Commit c234bc2

Browse files
committed
IO#binmode, IO#flush return LightIO::IO object
1 parent 3c3f9b7 commit c234bc2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/lightio/library/io.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@ def puts(*obj)
152152
end
153153
end
154154

155+
def flush
156+
@obj.flush
157+
self
158+
end
159+
155160
def close(*args)
156161
# close watcher before io closed
157162
io_watcher.close
@@ -217,6 +222,11 @@ def seek(*args)
217222
@obj.seek(*args)
218223
end
219224

225+
def binmode
226+
@obj.binmode
227+
self
228+
end
229+
220230
prepend IOMethods
221231
end
222232
end

0 commit comments

Comments
 (0)