Method: Net::SSH::Multi::ChannelProxy#method_missing
- Defined in:
- lib/net/ssh/multi/channel_proxy.rb
#method_missing(sym, *args, &block) ⇒ Object
If a channel delegate has been specified (see #delegate_to), the method will be immediately sent to the delegate. Otherwise, the call is added to the list of recorded method calls, to be played back when a delegate is specified.
41 42 43 44 45 46 47 |
# File 'lib/net/ssh/multi/channel_proxy.rb', line 41 def method_missing(sym, *args, &block) if @channel @channel.__send__(sym, *args, &block) else @recordings << [sym, args, block] end end |