Method: Farcall::Endpoint#on_remote_call
- Defined in:
- lib/farcall/endpoint.rb
#on_remote_call(&block) ⇒ Object Also known as: on_command
Process remote commands. Provided block will be executed on every remote command taking parameters |name, args, kwargs|. Whatever block returns will be passed to a calling party. The same any exception that the block might raise would be send back to caller.
this block will be called onlly of there wes no ‘provider` specified and no #on handler set for the command being executed.
160 161 162 |
# File 'lib/farcall/endpoint.rb', line 160 def on_remote_call &block @on_remote_call = block end |