Sha256: 81494cd4cef07102b4cacef8196a375f6c2238690d12eae09e0dc8a753623d99
Contents?: true
Size: 459 Bytes
Versions: 2
Compression:
Stored size: 459 Bytes
Contents
module Space module Models class Repos class Collection < Array attr_reader :repos def initialize(repos, elements) @repos = repos super(elements) end def names map(&:name) end def self_and_deps Collection.new(repos, (self + deps).uniq) end def deps map(&:deps).flatten.map(&:repo).compact 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/collection.rb |
space-0.0.4 | lib/space/models/repos/collection.rb |