diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-05-12 18:59:43 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 16:20:49 +0900 |
| commit | 5a88904fe886fc79f8e6a3f47ec7a782c987c96c (patch) | |
| tree | 0a97546d2a30e7cd434ecc8a16da11b9c8857c13 /Rakefile | |
| parent | b3db34c2a8323acd6035f439a2e32d8ab66614c2 (diff) | |
| download | mruby-5a88904fe886fc79f8e6a3f47ec7a782c987c96c.tar.gz mruby-5a88904fe886fc79f8e6a3f47ec7a782c987c96c.zip | |
Use `File.open` instead of `File.write` shortcut.
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -132,7 +132,11 @@ file presym_file => cfiles+rbfiles do presyms = File.readlines(presym_file, chomp: true) rescue [] if presyms != symbols rm_f presym_file - File.write(presym_file, symbols.join("\n")) + File.open(presym_file, "w") do |f| + symbols.each do|line| + f.puts line + end + end end end |
