Move array monkey patch into its own file

pull/1/head
Alex Basson 4 years ago
parent 18ddfaaaf8
commit 457615505f

@ -1,9 +1,3 @@
class Array
def average
self.sum.to_f / self.size
end
end
class SurveyResponseAggregator
def self.score(academic_year:, school:, measure:)
SurveyItemResponse

@ -0,0 +1,7 @@
module ArrayMonkeyPatches
def average
self.sum.to_f / self.size
end
end
Array.include ArrayMonkeyPatches
Loading…
Cancel
Save