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: base.rb
    path of file: ./repos/tapioca/lib/tapioca/gem/listeners
    
    the code of the file until where you have to start completion: # typed: strict
# frozen_string_literal: true

module Tapioca
  
    
        def dispatch(event)
          return if ignore?(event)

          case event
          when ConstNodeAdded
            on_const(event)
          when ScopeNodeAdded
            on_scope(event)
          when MethodNodeAdded
            on_method(event)
          else
            raise "Unsupported event #{event.class}"
          end