This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapseThis class handles dynamic methods through the method_missing method
#method_missing(method_name) ⇒ ObjectThis method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 22 23 24 25
# File 'lib/capybara/registration_container.rb', line 19 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 endInstance Method Details #[](name) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12
# File 'lib/capybara/registration_container.rb', line 10 def [](name) @registered[name] end#[]=(name, value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 17
# File 'lib/capybara/registration_container.rb', line 14 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#names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
6 7 8
# File 'lib/capybara/registration_container.rb', line 6 def names @registered.keys end#respond_to_missing?(method_name, include_all) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29
# File 'lib/capybara/registration_container.rb', line 27 def respond_to_missing?(method_name, include_all) @registered.respond_to?(method_name) || super end
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4