gitlab-org--gitlab-foss/lib/bitbucket/collection.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
263 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Bitbucket
class Collection < Enumerator
def initialize(paginator)
super() do |yielder|
loop do
2016-12-07 08:54:32 -05:00
paginator.items.each { |item| yielder << item }
end
end
lazy
end
end
end