class ActionDispatch::Routing::RouteSet::Generator

def normalize_controller!

Experimental RBS support (using type sampling data from the type_fusion project).

def normalize_controller!: () -> untyped

This signature was generated using 1 sample from 1 application.

Remove leading slashes from controllers
def normalize_controller!
  if controller
    if controller.start_with?("/")
      @options[:controller] = controller[1..-1]
    else
      @options[:controller] = controller
    end
  end
end