Skip to content

Commit 633ebb9

Browse files
committed
Use path instead of _ToPath | string
1 parent 8729c8b commit 633ebb9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/io.rbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2278,7 +2278,7 @@ class IO < Object
22782278
# potential security vulnerabilities if called with untrusted input; see
22792279
# [Command Injection](rdoc-ref:command_injection.rdoc).
22802280
#
2281-
def self.binread: (_ToPath | string name, ?Integer? length, ?Integer offset) -> String
2281+
def self.binread: (path name, ?Integer? length, ?Integer offset) -> String
22822282

22832283
# <!--
22842284
# rdoc-file=io.c
@@ -2291,7 +2291,7 @@ class IO < Object
22912291
# potential security vulnerabilities if called with untrusted input; see
22922292
# [Command Injection](rdoc-ref:command_injection.rdoc).
22932293
#
2294-
def self.binwrite: (_ToPath | string name, _ToS string, ?Integer offset, ?mode: String mode) -> Integer
2294+
def self.binwrite: (path name, _ToS string, ?Integer offset, ?mode: String mode) -> Integer
22952295

22962296
# <!--
22972297
# rdoc-file=io.c
@@ -2716,7 +2716,7 @@ class IO < Object
27162716
# * [Open Options](rdoc-ref:IO@Open+Options).
27172717
# * [Encoding options](rdoc-ref:encodings.rdoc@Encoding+Options).
27182718
#
2719-
def self.read: (_ToPath | string name, ?Integer? length, ?Integer offset, ?external_encoding: String | Encoding | nil, ?internal_encoding: String | Encoding | nil, ?encoding: String | Encoding | nil, ?textmode: boolish, ?binmode: boolish, ?autoclose: boolish, ?mode: String) -> String
2719+
def self.read: (path name, ?Integer? length, ?Integer offset, ?external_encoding: String | Encoding | nil, ?internal_encoding: String | Encoding | nil, ?encoding: String | Encoding | nil, ?textmode: boolish, ?binmode: boolish, ?autoclose: boolish, ?mode: String) -> String
27202720

27212721
# <!--
27222722
# rdoc-file=io.c
@@ -2986,7 +2986,7 @@ class IO < Object
29862986
# * [Open Options](rdoc-ref:IO@Open+Options).
29872987
# * [Encoding options](rdoc-ref:encodings.rdoc@Encoding+Options).
29882988
#
2989-
def self.write: (_ToPath | string path, _ToS data, ?Integer offset, ?external_encoding: String | Encoding | nil, ?internal_encoding: String | Encoding | nil, ?encoding: String | Encoding | nil, ?textmode: boolish, ?binmode: boolish, ?autoclose: boolish, ?mode: String) -> Integer
2989+
def self.write: (path path, _ToS data, ?Integer offset, ?external_encoding: String | Encoding | nil, ?internal_encoding: String | Encoding | nil, ?encoding: String | Encoding | nil, ?textmode: boolish, ?binmode: boolish, ?autoclose: boolish, ?mode: String) -> Integer
29902990

29912991
# <!--
29922992
# rdoc-file=io.c

0 commit comments

Comments
 (0)