回答編集履歴

1

訂正

2018/09/14 03:17

投稿

otn
otn

スコア84557

test CHANGED
@@ -22,7 +22,9 @@
22
22
 
23
23
  ```Ruby
24
24
 
25
+ # filenames = Dir.open("dat").to_a ← クローズし忘れてた
26
+
25
- filenames = Dir.open("dat").to_a
27
+ filenames = Dir.open("dat",&:to_a)
26
28
 
27
29
  p filenames
28
30