class Mongo::Cursor::Wrapper(T)


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

Defined in:


Instance Method Summary

Instance Method Detail

def close(*args, **options) #

def close(*args, **options, &) #

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.