diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-11-21 16:20:17 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-11-21 22:16:49 +0900 |
commit | 612aa5c24a7c249867bbcd7d6567012aa6a7f4b9 (patch) | |
tree | 35581bf73b35123b08cc2ac9c9f453ab0010ff69 /win32 | |
parent | 116920cff8739c49ba469bf243252f503e28f0fd (diff) | |
download | ruby-612aa5c24a7c249867bbcd7d6567012aa6a7f4b9.tar.gz |
Use class methods of `File` over `Kernel.open` and `IO.read`
Diffstat (limited to 'win32')
-rwxr-xr-x | win32/mkexports.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/mkexports.rb b/win32/mkexports.rb index 6808a38ea0..40f055dee7 100755 --- a/win32/mkexports.rb +++ b/win32/mkexports.rb @@ -26,7 +26,7 @@ class Exports def self.output(output = $output, &block) if output - open(output, 'wb', &block) + File.open(output, 'wb', &block) else yield STDOUT end |