Method: Mongo::Cursor#each

Defined in:
lib/jmongo/cursor.rb

#eachObject

iterate directly from the mongo db



153
154
155
156
157
# File 'lib/jmongo/cursor.rb', line 153

def each
  while has_next?
    yield next_document
  end
end