Class: Net::SSH::Connection::Session::NilChannel

Inherits:
Object
  • Object
show all
Defined in:
lib/net/ssh/connection/session.rb

Instance Method Summary collapse

Constructor Details

#initialize(session) ⇒ NilChannel

Returns a new instance of NilChannel.


58
59
60
# File 'lib/net/ssh/connection/session.rb', line 58

def initialize(session)
  @session = session
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args) ⇒ Object


62
63
64
# File 'lib/net/ssh/connection/session.rb', line 62

def method_missing(sym, *args)
  @session.lwarn { "ignoring request #{sym.inspect} for non-existent (closed?) channel; probably ssh server bug" }
end