module ActionDispatch::Http::URL

def path_for(options)

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

def path_for: (Hash options) -> String

This signature was generated using 62 samples from 1 application.

def path_for(options)
  path = options[:script_name].to_s.chomp("/")
  path << options[:path] if options.key?(:path)
  path = "/" if options[:trailing_slash] && path.blank?
  add_params(path, options[:params]) if options.key?(:params)
  add_anchor(path, options[:anchor]) if options.key?(:anchor)
  path
end