Sha256: 8255bd50d2af5c2ca60bd281384d52189dbcafed988c16b568f42a3f203b17a1

Contents?: true

Size: 357 Bytes

Versions: 2

Compression:

Stored size: 357 Bytes

Contents

module Space
  module Models
    class Repos
      class Collection < Array
        attr_reader :repos

        def initialize(repos, elements)
          @repos = repos
          super(elements)
        end

        def self_and_dependencies
          Collection.new(repos, (self + map(&:dependencies)).flatten.uniq)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
space-0.0.5 lib/space/models/repos/scope.rb
space-0.0.4 lib/space/models/repos/scope.rb