Class: Net::SSH::Connection::Session::StringWithExitstatus

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(str, exitstatus) ⇒ StringWithExitstatus

Returns a new instance of StringWithExitstatus.


350
351
352
353
# File 'lib/net/ssh/connection/session.rb', line 350

def initialize(str, exitstatus)
  super(str)
  @exitstatus = exitstatus
end

Instance Attribute Details

#exitstatusObject (readonly)

Returns the value of attribute exitstatus


355
356
357
# File 'lib/net/ssh/connection/session.rb', line 355

def exitstatus
  @exitstatus
end