回答編集履歴
1
追記
test
CHANGED
@@ -7,3 +7,23 @@
|
|
7
7
|
p a,b,c,d
|
8
8
|
|
9
9
|
```
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
---
|
14
|
+
|
15
|
+
**コメントを受けて追記**
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
|
21
|
+
a,b,c,d = Array.new(4){[]}
|
22
|
+
|
23
|
+
p a,b,c,d
|
24
|
+
|
25
|
+
a << 1
|
26
|
+
|
27
|
+
p a,b,c,d
|
28
|
+
|
29
|
+
```
|