Class: LSP::ConfigurationParams

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

Overview

export interface ConfigurationParams

items: ConfigurationItem[];

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#itemsObject

type: ConfigurationItem[]



71
72
73
# File 'lib/lsp/lsp_protocol_configuration.rb', line 71

def items
  @items
end

Instance Method Details

#from_h!(value) ⇒ Object



73
74
75
76
77
# File 'lib/lsp/lsp_protocol_configuration.rb', line 73

def from_h!(value)
  value = {} if value.nil?
  self.items = to_typed_aray(value['items'], ConfigurationItem)
  self
end