class ActionDispatch::Routing::RouteSet::Generator

def normalize_controller!

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

def normalize_controller!: () -> String

This signature was generated using 5 samples 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