class CC::Config::Prepare::Fetch

Attributes

entries[R]

Public Class Methods

from_data(data) click to toggle source
# File lib/cc/config/prepare.rb, line 25
def self.from_data(data)
  new(data.map { |d| Entry.from_data(d) })
end
new(entries = []) click to toggle source
# File lib/cc/config/prepare.rb, line 29
def initialize(entries = [])
  @entries = Set.new(entries)
end

Public Instance Methods

each(&block) click to toggle source
# File lib/cc/config/prepare.rb, line 33
def each(&block)
  entries.each(&block)
end
merge(other) click to toggle source
# File lib/cc/config/prepare.rb, line 41
def merge(other)
  Fetch.new(each.to_a | other.each.to_a)
end
paths() click to toggle source
# File lib/cc/config/prepare.rb, line 37
def paths
  entries.map(&:path)
end