minor: make methods private instead of protected or documented as private but actually public

This commit is contained in:
Mike Dirolf 2009-08-21 11:03:56 -04:00
parent 94fe53d96b
commit 28e795e9e2

View File

@ -41,13 +41,6 @@ module Mongo
def closed?; @closed; end def closed?; @closed; end
# Internal method, not for general use. Return +true+ if there are
# more records to retrieve. We do not check @num_to_return; #each is
# responsible for doing that.
def more?
num_remaining > 0
end
# Return the next object or nil if there are no more. Raises an error # Return the next object or nil if there are no more. Raises an error
# if necessary. # if necessary.
def next_object def next_object
@ -157,7 +150,7 @@ module Mongo
@closed = true @closed = true
end end
protected private
def read_all def read_all
read_message_header read_message_header
@ -192,7 +185,12 @@ module Mongo
@cache.length @cache.length
end end
private # Internal method, not for general use. Return +true+ if there are
# more records to retrieve. We do not check @num_to_return; #each is
# responsible for doing that.
def more?
num_remaining > 0
end
def next_object_on_wire def next_object_on_wire
send_query_if_needed send_query_if_needed