class ActionDispatch::Routing::Mapper::Constraints

def initialize(app, constraints, strategy)

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

def initialize: (ActionCable::Server::Base app, Array[] constraints, Proc strategy) -> void

This signature was generated using 1 sample from 1 application.

def initialize(app, constraints, strategy)
  # Unwrap Constraints objects. I don't actually think it's possible
  # to pass a Constraints object to this constructor, but there were
  # multiple places that kept testing children of this object. I
  # *think* they were just being defensive, but I have no idea.
  if app.is_a?(self.class)
    constraints += app.constraints
    app = app.app
  end
  @strategy = strategy
  @app, @constraints, = app, constraints
end