debian-mirror-gitlab/lib/bitbucket/collection.rb
2021-04-17 20:07:23 +05:30

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