lib/ib_ruby_proxy/client/callbacks_response_handler.rb
# Configures a mapping between a method invocation and a received callback
#
# @param [String, Symbol] method
# @param [String, Symbol] callbacks
# @param [Integer, nil] discriminate_by_argument_nth The position of the argument that
#   will be used to discriminate received callbacks and match them with invocation methods.
#   +nil+ indicates no argument should be used for discriminating (default)
Configures a mapping between a method invocation and a received callback
Configures a mapping between a method invocation and a received callback
def configure_block_callback(method:, callbacks:, discriminate_by_argument_nth: nil)
        validate_can_add_callback_on_method!(method)
        handler = BlockCallbackHandler.new(discriminate_by_argument_nth)
        configure_callbacks_handler(callbacks, handler)
        configure_method_handler(method, handler)
      end
def configure_block_callback ( method : , callbacks : , discriminate_by_argument_nth : nil ) validate_can_add_callback_on_method! ( method ) handler = BlockCallbackHandler . new ( discriminate_by_argument_nth ) configure_callbacks_handler ( callbacks , handler ) configure_method_handler ( method , handler ) end
Configures a mapping between a method invocation and a received callback
Configures a mapping between a method invocation and a received callback
method
<not_specific>
callbacks
<not_specific>
discriminate_by_argument_nth
<not_specific>
<not_specific>
discriminate_by_argument_nth The position of the argument that will be used to discriminate received callbacks and match them with invocation methods. +nil+ indicates no argument should be used for discriminating (default)
discriminate_by_argument_nth The position of the argument that will be used to discriminate received callbacks and match them with invocation methods . + nil + indicates no argument should be used for discriminating ( default )