Class: LSP::DidChangeConfigurationRegistrationOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface DidChangeConfigurationRegistrationOptions
section?: string | string[];
Instance Attribute Summary collapse
-
#section ⇒ Object
type: string | string[].
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ DidChangeConfigurationRegistrationOptions
constructor
A new instance of DidChangeConfigurationRegistrationOptions.
Methods inherited from LSPBase
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
#section ⇒ Object
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 |