class

Mongo::Cursor::Wrapper(T)

Inherits Iterator / Enumerable / Reference / Object

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.

Instance methods

close(*args, **options)
Source
close(*args, **options, &)
Source
next

Returns the next element in this iterator, or Iterator::Stop::INSTANCE if there are no more elements.

Source