class Array

Public Instance Methods

can_mongo_convert?() click to toggle source
# File lib/mongo_persist/array_ext.rb, line 11
def can_mongo_convert?
  all? { |x| x.can_mongo_convert? && x }
end
sum() click to toggle source
# File lib/mongo_persist/array_ext.rb, line 17
def sum
  inject { |s,i| s + i }
end
to_mongo_hash() click to toggle source
# File lib/mongo_persist/array_ext.rb, line 2
def to_mongo_hash
  map { |x| x.safe_to_mongo_hash }
end
to_mongo_object() click to toggle source
# File lib/mongo_persist/array_ext.rb, line 5
def to_mongo_object
  map { |x| x.safe_to_mongo_object }
end
to_mongo_ref_hash() click to toggle source
# File lib/mongo_persist/array_ext.rb, line 8
def to_mongo_ref_hash
  map { |x| x.to_mongo_ref_hash }
end