lib/mongo/cursor.rb
# Returns an explain plan record.
Returns an explain plan record.
Returns an explain plan record .
def explain
          old_val = @query.explain
          @query.explain = true
          c = Cursor.new(@db, @collection, @query)
          explanation = c.next_object
          c.close
          @query.explain = old_val
          explanation
        end
def explain old_val = @query . explain @query . explain = true c = Cursor . new ( @db , @collection , @query ) explanation = c . next_object c . close @query . explain = old_val explanation end
Returns an explain plan record.
Returns an explain plan record .