Class: LSP::ResourceOperation

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

Overview

interface ResourceOperation

kind: string;

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

#kindObject

type: string



405
406
407
# File 'lib/lsp/lsp_types.rb', line 405

def kind
  @kind
end

Instance Method Details

#from_h!(value) ⇒ Object



407
408
409
410
411
# File 'lib/lsp/lsp_types.rb', line 407

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