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: slice_configured_view.rb
    path of file: ./repos/hanami/lib/hanami/extensions/view
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Hanami
  module Extensions
    module View
      # Pr
    
        def scope_superclass
          return Hanami::View::Scope if app?

          begin
            inflector.constantize(inflector.camelize("#{slice.app.slice_name.name}/views/scope"))
          rescue NameError
            Hanami::View::Scope
          end