class Warden::Proxy

def _fetch_strategy(name, scope)

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

def _fetch_strategy: (Symbol name, Symbol scope) -> untyped

This signature was generated using 2 samples from 1 application.

Fetches strategies and keep them in a hash cache.
def _fetch_strategy(name, scope)
  @strategies[scope][name] ||= if klass = Warden::Strategies[name]
    klass.new(@env, scope)
  elsif @config.silence_missing_strategies?
    nil
  else
    raise "Invalid strategy #{name}"
  end
end