diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-11-25 14:22:37 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-12-01 02:28:49 +0900 |
commit | d752cf7601adbe4bc2dc658effc2f61563a7dfb7 (patch) | |
tree | 7acc875d1933b330f96c7e3d7a31d61da5e77387 /win32 | |
parent | a0b0365e905e1ac51998ace7e6fc723406a2f157 (diff) | |
download | ruby-d752cf7601adbe4bc2dc658effc2f61563a7dfb7.tar.gz |
Use class methods of `File` over `Kernel.open` and `IO.read`
Diffstat (limited to 'win32')
-rwxr-xr-x | win32/resource.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/resource.rb b/win32/resource.rb index bc3eda5630..60bb1f3bd0 100755 --- a/win32/resource.rb +++ b/win32/resource.rb @@ -53,7 +53,7 @@ end [$so_name, '.dll', 'VFT_DLL', 'DLL', dll_icons.join], ].each do |base, ext, type, desc, icon| next if $output and $output != base - open(base + '.rc', "w") { |f| + File.open(base + '.rc', "w") { |f| f.binmode if /mingw/ =~ RUBY_PLATFORM f.print <<EOF |