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 /tool/expand-config.rb | |
parent | 116920cff8739c49ba469bf243252f503e28f0fd (diff) | |
download | ruby-612aa5c24a7c249867bbcd7d6567012aa6a7f4b9.tar.gz |
Use class methods of `File` over `Kernel.open` and `IO.read`
Diffstat (limited to 'tool/expand-config.rb')
-rwxr-xr-x | tool/expand-config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/expand-config.rb b/tool/expand-config.rb index 81ffa6cb98..928e7f91fe 100755 --- a/tool/expand-config.rb +++ b/tool/expand-config.rb @@ -16,7 +16,7 @@ while /\A(\w+)=(.*)/ =~ ARGV[0] end if $output - output = open($output, "wb", $mode &&= $mode.oct) + output = File.open($output, "wb", $mode &&= $mode.oct) output.chmod($mode) if $mode else output = STDOUT |