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: entries_v3.rb
    path of file: ./repos/devdocs/lib/docs/filters/scala
    
    the code of the file until where you have to start completion: # frozen_string_lit
    
      def get_name
        if is_package?
          at_css('.cover-header h1').text
        else
          name = slug.split('/').last

          # Some objects have inner objects, show ParentObject$.ChildObject$ instead of ParentObject$$ChildObject$
          name = name.gsub('$$', '$.')

          REPLACEMENTS.each do |key, value|
            name = name.gsub(key, value)
          end

          # If a dollar sign is used as separator between two characters, replace it with a dot
          name.gsub(/([^$.])\$([^$.])/, '\1.\2')
        end
      end