You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: parser.rb
    path of file: ./repos/classroom/lib/docker_compose
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module DockerCompose
  class Parser
    # Public: Parse the docker-compose output and get t
    
    def self.parse(output)
      services = DockerCompose::Services.new

      output.split("\n")[2..-1].map do |service|
        services << DockerCompose::Service.new(**service_attributes(service))
      end

      services
    end