summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-11-21 16:20:17 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-11-21 22:16:49 +0900
commit612aa5c24a7c249867bbcd7d6567012aa6a7f4b9 (patch)
tree35581bf73b35123b08cc2ac9c9f453ab0010ff69 /win32
parent116920cff8739c49ba469bf243252f503e28f0fd (diff)
downloadruby-612aa5c24a7c249867bbcd7d6567012aa6a7f4b9.tar.gz
Use class methods of `File` over `Kernel.open` and `IO.read`
Diffstat (limited to 'win32')
-rwxr-xr-xwin32/mkexports.rb2
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