Class: LSP::ConfigurationItem

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

Overview

export interface ConfigurationItem

/**
 * The scope to get the configuration section for.
 */
scopeUri?: string;
/**
 * The configuration section asked for.
 */
section?: string;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ ConfigurationItem

Returns a new instance of ConfigurationItem.



54
55
56
57
# File 'lib/lsp/lsp_protocol_configuration.rb', line 54

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

Instance Attribute Details

#scopeUriObject

type: string # type: string



52
53
54
# File 'lib/lsp/lsp_protocol_configuration.rb', line 52

def scopeUri
  @scopeUri
end

#sectionObject

type: string # type: string



52
53
54
# File 'lib/lsp/lsp_protocol_configuration.rb', line 52

def section
  @section
end

Instance Method Details

#from_h!(value) ⇒ Object



59
60
61
62
63
64
# File 'lib/lsp/lsp_protocol_configuration.rb', line 59

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