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.rb
    path of file: ./repos/devdocs/lib/docs/filters/dart
    
    the code of the file until where you have to start completion: module Docs
  class Dart
    class EntriesFilter < Doc
    
      def get_name
        title = at_css('h1.title')
        if title # v1
          name = title.element_children.last.content.strip
          kind = title.at_css('.kind').content
        else # v2
          title = at_css('.main-content > div > h1')
          name = title.content[/(.*)( )/, 1].split(' top-level')[0]
          kind = title.content[/(.*)( )(.+)/, 3]
        end