15 lines
263 B
Ruby
15 lines
263 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Bitbucket
|
|
class Collection < Enumerator
|
|
def initialize(paginator)
|
|
super() do |yielder|
|
|
loop do
|
|
paginator.items.each { |item| yielder << item }
|
|
end
|
|
end
|
|
|
|
lazy
|
|
end
|
|
end
|
|
end
|