class Array
Public Instance Methods
average()
click to toggle source
# File lib/awein/array.rb, line 2 def average self.sum.to_f / self.length end
symbolize_keys_recursive()
click to toggle source
# File lib/awein/array.rb, line 6 def symbolize_keys_recursive inject([]) do |options, value| value = value.symbolize_keys_recursive if value.instance_of? Hash value = value.symbolize_keys_recursive if value.instance_of? Array options << value options end end