comments
This commit is contained in:
parent
768a3ab1a5
commit
04b0b926d4
|
@ -42,13 +42,15 @@ module XGen
|
||||||
|
|
||||||
def closed?; @closed; end
|
def closed?; @closed; end
|
||||||
|
|
||||||
# Return +true+ if there are more records to retrieve. We do not check
|
# Internal method, not for general use. Return +true+ if there are
|
||||||
# @num_to_return; #each is responsible for doing that.
|
# more records to retrieve. We do not check @num_to_return; #each is
|
||||||
|
# responsible for doing that.
|
||||||
def more?
|
def more?
|
||||||
num_remaining > 0
|
num_remaining > 0
|
||||||
end
|
end
|
||||||
|
|
||||||
# Return the next object. Raises an error if necessary.
|
# Return the next object or nil if there are no more. Raises an error
|
||||||
|
# if necessary.
|
||||||
def next_object
|
def next_object
|
||||||
refill_via_get_more if num_remaining == 0
|
refill_via_get_more if num_remaining == 0
|
||||||
o = @cache.shift
|
o = @cache.shift
|
||||||
|
|
Loading…
Reference in New Issue