class ActionDispatch::Journey::Router::Utils::UriEncoder

def escape(component, pattern)

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

def escape: (String component, Regexp pattern) -> untyped

This signature was generated using 5 samples from 1 application.

def escape(component, pattern)
  component.gsub(pattern) { |unsafe| percent_encode(unsafe) }.force_encoding(US_ASCII)
end