Class: DSP::DisconnectArguments

Inherits:
DSPBase
  • Object
show all
Defined in:
lib/dsp/dsp_protocol.rb

Overview

interface DisconnectArguments {

    /** A value of true indicates that this 'disconnect' request is part of a restart sequence. */
    restart?: boolean;
    /** Indicates whether the debuggee should be terminated when the debugger is disconnected.
        If unspecified, the debug adapter is free to do whatever it thinks is best.
        The attribute is only honored by a debug adapter if the capability 'supportTerminateDebuggee' is true.
    */
    terminateDebuggee?: boolean;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DisconnectArguments

Returns a new instance of DisconnectArguments.



1199
1200
1201
1202
# File 'lib/dsp/dsp_protocol.rb', line 1199

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[restart terminateDebuggee]
end

Instance Attribute Details

#restartObject

type: boolean # type: boolean



1197
1198
1199
# File 'lib/dsp/dsp_protocol.rb', line 1197

def restart
  @restart
end

#terminateDebuggeeObject

type: boolean # type: boolean



1197
1198
1199
# File 'lib/dsp/dsp_protocol.rb', line 1197

def terminateDebuggee
  @terminateDebuggee
end

Instance Method Details

#from_h!(value) ⇒ Object



1204
1205
1206
1207
1208
1209
# File 'lib/dsp/dsp_protocol.rb', line 1204

def from_h!(value)
  value = {} if value.nil?
  self.restart = value['restart'] # Unknown type
  self.terminateDebuggee = value['terminateDebuggee'] # Unknown type
  self
end