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: type.rb
    path of file: ./repos/refinerycms/pages/lib/refinery/pages
    
    the code of the file until where you have to start completion: module Refinery
  module Pages
    class Type

      attr_accessor :name, :parts, :template

      def parts=(new_parts)
        @parts = if new_parts.all? { |v| v.is_a?(String) }
          new_syntax = new_parts
    
      def parts=(new_parts)
        @parts = if new_parts.all? { |v| v.is_a?(String) }
          new_syntax = new_parts.map do |part|
            { title: part, slug: part.downcase.gsub(" ", "_") }
          end
          Refinery.deprecate(
            "Change specific page template page parts from #{new_parts} to #{new_syntax}",
            when: "4.1.0"
          )
          new_syntax
        else
          new_parts
        end