class Datadog::Core::Remote::Configuration::ContentList

It provides convinient methods for finding content base on Configuration::Path and Configuration::Target
ContentList stores a list of Conetnt instances

def [](path)

def [](path)
  find { |c| c.path.eql?(path) }
end

def []=(path, content)

def []=(path, content)
  map! { |c| c.path.eql?(path) ? content : c }
end

def delete(path)

def delete(path)
  idx = index { |e| e.path.eql?(path) }
  return if idx.nil?
  delete_at(idx)
end

def find_content(path, target)

def find_content(path, target)
  find { |c| c.path.eql?(path) && target.check(c) }
end

def parse(array)

def parse(array)
  new.concat(array.map { |c| Content.parse(c) })
end

def paths

def paths
  map(&:path).uniq
end