Class: LSP::RegistrationParams

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

Overview

export interface RegistrationParams

registrations: Registration[];

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

#registrationsObject

type: Registration[]



47
48
49
# File 'lib/lsp/lsp_protocol.rb', line 47

def registrations
  @registrations
end

Instance Method Details

#from_h!(value) ⇒ Object



49
50
51
52
53
# File 'lib/lsp/lsp_protocol.rb', line 49

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