class Mongo::Cursor::Wrapper(T)
- Mongo::Cursor::Wrapper(T)
- Reference
- Object
Overview
A wrapper that will try to convert elements to the underlying T
type while iterating the Cursor
.
Assumes that T
has a constructor method named from_bson
.
Included Modules
- Iterator(T)
Defined in:
cryomongo/cursor.crInstance Method Summary
- #close(*args, **options)
- #close(*args, **options, &)
-
#next
Returns the next element in this iterator, or
Iterator::Stop::INSTANCE
if there are no more elements.
Instance Method Detail
def next
#
Description copied from module Iterator(T)
Returns the next element in this iterator, or Iterator::Stop::INSTANCE
if there
are no more elements.