Method: Appium::Core::Base::Bridge#add_command
- Defined in:
- lib/appium_lib_core/common/base/bridge.rb
#add_command(method:, url:, name:, &block) ⇒ Object
176 177 178 179 180 181 182 |
# File 'lib/appium_lib_core/common/base/bridge.rb', line 176 def add_command(method:, url:, name:, &block) ::Appium::Logger.info "Overriding the method '#{name}' for '#{url}'" if @available_commands.key? name @available_commands[name] = [method, url] ::Appium::Core::Device.add_endpoint_method name, &block end |