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: gemfile.rb
    path of file: ./repos/gitlabhq/lib/gitlab/dependency_linker/parser
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module DependencyLinker
    module Parser
      class Gemfile < MethodLinker
        GIT_REGEX = Gitlab::DependencyLinker::GemfileLink
    
        def parse(keyword:)
          plain_lines.each_with_object([]) do |line, packages|
            name = fetch(line, method_call_regex(keyword))

            next unless name

            git_ref = fetch(line, GIT_REGEX)
            github_ref = fetch(line, GITHUB_REGEX)

            packages << Gitlab::DependencyLinker::Package.new(name, git_ref, github_ref)
          end
        end