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) -> String
This signature was generated using 1 sample from 1 application.
def escape(component, pattern) component.gsub(pattern) { |unsafe| percent_encode(unsafe) }.force_encoding(US_ASCII) end