Class: LSP::WorkDoneProgressOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface WorkDoneProgressOptions
workDoneProgress?: boolean;
Instance Attribute Summary collapse
-
#workDoneProgress ⇒ Object
type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ WorkDoneProgressOptions
constructor
A new instance of WorkDoneProgressOptions.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ WorkDoneProgressOptions
Returns a new instance of WorkDoneProgressOptions.
221 222 223 224 |
# File 'lib/lsp/lsp_protocol.rb', line 221 def initialize(initial_hash = nil) super @optional_method_names = %i[workDoneProgress] end |
Instance Attribute Details
#workDoneProgress ⇒ Object
type: boolean
219 220 221 |
# File 'lib/lsp/lsp_protocol.rb', line 219 def workDoneProgress @workDoneProgress end |
Instance Method Details
#from_h!(value) ⇒ Object
226 227 228 229 230 |
# File 'lib/lsp/lsp_protocol.rb', line 226 def from_h!(value) value = {} if value.nil? self.workDoneProgress = value['workDoneProgress'] # Unknown type self end |