回答編集履歴
1
一部修正
test
CHANGED
@@ -12,9 +12,9 @@
|
|
12
12
|
|
13
13
|
return unless comments.size > 0
|
14
14
|
|
15
|
-
comments.inject(0.0){|s,comment| s+comment.value
|
15
|
+
(comments.inject(0.0){|s,comment| s+comment.value
|
16
16
|
|
17
|
-
|
17
|
+
}/comments.size).round(1)
|
18
18
|
|
19
19
|
end
|
20
20
|
|