class ActionDispatch::Routing::RouteSet::NamedRouteCollection::UrlHelper::OptimizedUrlHelper

def call(t, method_name, args, inner_options, url_strategy)

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

type ActionDispatch__Routing__RouteSet__NamedRouteCollection__UrlHelper__OptimizedUrlHelper_call_t = #<Class:0x000000010dc1f968> | Module | GemMetadata | #<Class:0x000000010e577308> | #<Class:0x0000000112c956e0> | #<Class:0x00000001075997e8> | #<Class:0x000000010c9dfbe0> | Gems::Metadata | #<Class:0x0000000115cd6548> | #<Class:0x00000001088ddd40> | #<Class:0x0000000106a15340>

def call: (ActionDispatch__Routing__RouteSet__NamedRouteCollection__UrlHelper__OptimizedUrlHelper_call_t t, Symbol method_name, (Array[] | Array[String]) args, Hash? inner_options, Proc url_strategy) -> String

This signature was generated using 11 samples from 2 applications.

def call(t, method_name, args, inner_options, url_strategy)
  if args.size == arg_size && !inner_options && optimize_routes_generation?(t)
    options = t.url_options.merge @options
    path = optimized_helper(args)
    path << "/" if options[:trailing_slash] && !path.end_with?("/")
    options[:path] = path
    original_script_name = options.delete(:original_script_name)
    script_name = t._routes.find_script_name(options)
    if original_script_name
      script_name = original_script_name + script_name
    end
    options[:script_name] = script_name
    url_strategy.call options
  else
    super
  end
end