class ActionDispatch::Routing::Mapper::Mapping

def constraints(options, path_params)

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

def constraints: (Hash options, Array[Symbol] path_params) -> untyped

This signature was generated using 2 samples from 1 application.

def constraints(options, path_params)
  options.group_by do |key, option|
    if Regexp === option
      :constraints
    else
      if path_params.include?(key)
        :path_params
      else
        :required_defaults
      end
    end
  end
end