method

add_method_interface

ruby latest stable - Class: SOAP::RPC::Driver

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

add_method_interface(name, param_count)
private

No documentation available.

# File lib/soap/rpc/driver.rb, line 228
    def add_method_interface(name, param_count)
      ::SOAP::Mapping.define_singleton_method(self, name) do |*arg|
        unless arg.size == param_count
          raise ArgumentError.new(
          "wrong number of arguments (#{arg.size} for #{param_count})")
        end
        call(name, *arg)
      end
      self.method(name)
    end