Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/array_extensions.rb

Instance Method Summary collapse

Instance Method Details

#averageObject



2
3
4
# File 'lib/array_extensions.rb', line 2

def average
  self.sum / self.size
end