File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3251,6 +3251,10 @@ class IO < Object
32513251 # f.close
32523252 #
32533253 alias to_i fileno
3254+
3255+ interface _ForFd [RET]
3256+ def for_fd : (?) -> RET
3257+ end
32543258end
32553259
32563260IO::APPEND: Integer
Original file line number Diff line number Diff line change @@ -104,7 +104,9 @@ class UNIXSocket < BasicSocket
104104 #
105105 # *mode* is the same as the argument passed to IO.for_fd
106106 #
107- def recv_io : (?singleton (BasicSocket), ?String mode) -> BasicSocket
107+ def recv_io : () -> IO
108+ | (singleton (Integer)?) -> Integer
109+ | [T] (IO::_ForFd[T], ?untyped mode) -> T
108110
109111 # <!--
110112 # rdoc-file=ext/socket/unixsocket.c
@@ -151,7 +153,7 @@ class UNIXSocket < BasicSocket
151153 #
152154 # *io* may be any kind of IO object or integer file descriptor.
153155 #
154- def send_io : (BasicSocket | Integer) -> void
156+ def send_io : (IO | Integer) -> void
155157
156158 private
157159
You can’t perform that action at this time.
0 commit comments