class ActionDispatch::Routing::Mapper::Mapping

def self.optional_format?(path, format)

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

def self.optional_format?: (String path, nil format) -> true

This signature was generated using 1 sample from 1 application.

def self.optional_format?(path, format)
  format != false && !path.match?(OPTIONAL_FORMAT_REGEX)
end