class Capybara::RegistrationContainer
@api private
def [](name)
def [](name) @registered[name] end
def []=(name, value)
def []=(name, value) Capybara::Helpers.warn 'DEPRECATED: Directly setting drivers/servers is deprecated, please use Capybara.register_driver/register_server instead' @registered[name] = value end
def initialize
def initialize @registered = {} end
def method_missing(method_name, ...)
def method_missing(method_name, ...) if @registered.respond_to?(method_name) Capybara::Helpers.warn "DEPRECATED: Calling '#{method_name}' on the drivers/servers container is deprecated without replacement" return @registered.public_send(method_name, ...) end super end
def names
def names @registered.keys end
def register(name, block)
def register(name, block) @registered[name] = block end
def respond_to_missing?(method_name, include_all)
def respond_to_missing?(method_name, include_all) @registered.respond_to?(method_name) || super end