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: pxe_image_ipxe.rb
    path of file: ./repos/manageiq/app/models
    
    the code of the file until where you have to start completion: class PxeImageIpxe < PxeImage
  def build_pxe_contents(kernel_args)
    pxe = "#!ipxe\n"
    pxe << "kernel #{kernel} #{super}\n"
    pxe 
    
  def self.parse_contents(contents, label)
    current_item = {:label => label}
    contents.each_line do |line|
      line  = line.strip
      key   = line.split.first.downcase.to_sym
      value = line[key.to_s.length..-1].strip

      case key
      when :kernel
        current_item[:kernel], current_item[:kernel_options] = corresponding_menu.parse_kernel(value)
      else
        current_item[key] = value if [:initrd].include?(key)
      end
    end