Move array monkey patch into its own file

This commit is contained in:
Alex Basson 2021-09-21 20:47:53 -04:00
parent 18ddfaaaf8
commit 457615505f
2 changed files with 7 additions and 6 deletions

View file

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