回答編集履歴
1
コードの間違いを訂正
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
def initialize
|
20
20
|
|
21
|
-
@child =
|
21
|
+
@child = Child.new(self) # 自分をdelegate先としてChildのインスタンスを生成
|
22
22
|
|
23
23
|
end
|
24
24
|
|