lib/mongo/db.rb
# Returns an array of collection names. Each name is of the form
# "database_name.collection_name".
Returns an array of collection names. Each name is of the form
"database_name.collection_name".
Returns an array of collection names . Each name is of the form " database_name . collection_name " .
def collection_names
          names = collections_info.collect { |doc| doc['name'] || '' }
          names.delete('')
          names
        end
def collection_names names = collections_info . collect { | doc | doc [ 'name' ] || '' } names . delete ( '' ) names end
Returns an array of collection names.
Returns an array of collection names .