Class: LSP::DidChangeConfigurationRegistrationOptions

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_protocol.rb

Overview

export interface DidChangeConfigurationRegistrationOptions

section?: string | string[];

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DidChangeConfigurationRegistrationOptions

Returns a new instance of DidChangeConfigurationRegistrationOptions.



340
341
342
343
# File 'lib/lsp/lsp_protocol.rb', line 340

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

Instance Attribute Details

#sectionObject

type: string | string[]



338
339
340
# File 'lib/lsp/lsp_protocol.rb', line 338

def section
  @section
end

Instance Method Details

#from_h!(value) ⇒ Object



345
346
347
348
349
# File 'lib/lsp/lsp_protocol.rb', line 345

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