module Mingo::Cursor::CollectionPlugin
Public Instance Methods
find(*args) { |cursor| ... }
click to toggle source
Calls superclass method
# File lib/mingo/cursor.rb, line 6 def find(*args) cursor = Cursor.from_mongo(super(*args)) if block_given? yield cursor cursor.close() nil else cursor end end