diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-05-31 15:52:32 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-06-19 18:46:55 +0900 |
commit | 63aadc237f48be23803acae724401f8b4221fa38 (patch) | |
tree | 96ea77c66f42685bacacca4e69ac64139d93620d /io.rb | |
parent | 49f0fd21e468e567dc122547d516eef42c0ce0d3 (diff) |
[Feature #16254] Use `Primitive.func` style
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3165
Diffstat (limited to 'io.rb')
-rw-r--r-- | io.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -60,7 +60,7 @@ class IO # return the symbol +:wait_readable+ instead. At EOF, it will return nil # instead of raising EOFError. def read_nonblock(len, buf = nil, exception: true) - __builtin.io_read_nonblock(len, buf, exception) + Primitive.io_read_nonblock(len, buf, exception) end # call-seq: @@ -118,6 +118,6 @@ class IO # that write_nonblock should not raise an IO::WaitWritable exception, but # return the symbol +:wait_writable+ instead. def write_nonblock(buf, exception: true) - __builtin.io_write_nonblock(buf, exception) + Primitive.io_write_nonblock(buf, exception) end end |