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: yearly_recurrence_pattern.rb
    path of file: ./repos/tracks/app/models/recurring_todos
    
    the code of the file until where you have to start completion: module RecurringTodos
  class YearlyRecurrencePattern < AbstractRecurrencePattern
    def initialize(user)
      super user
    end

    def recurrence_selector
      get :recurrence_se
    
    def get_next_date(previous)
      start = determine_start(previous)
      month = get(:every_other2)

      case recurrence_selector
      when 0 # specific day of a specific month
        return get_specific_day_of_month(start, month)
      when 1 # relative weekday of a specific month
        return get_relative_weekday_of_month(start, month)
      end