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.


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

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

Instance Attribute Details

#exitstatusObject (readonly)

Returns the value of attribute exitstatus.


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

def exitstatus
  @exitstatus
end