回答編集履歴
1
追記
test
CHANGED
@@ -17,3 +17,15 @@
|
|
17
17
|
end
|
18
18
|
|
19
19
|
```
|
20
|
+
|
21
|
+
解2
|
22
|
+
|
23
|
+
```
|
24
|
+
|
25
|
+
def list_of_domains(domain)
|
26
|
+
|
27
|
+
(dom=domain.split('.')).inject([domain]){|ary,_d| dom.shift;ary<<dom.join(".")}
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
```
|