Class: Lsp::CompletionItem

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



9
10
11
# File 'lib/lsp.rb', line 9

def label
  @label
end

#text_editObject

Returns the value of attribute text_edit

Returns:

  • (Object)

    the current value of text_edit



9
10
11
# File 'lib/lsp.rb', line 9

def text_edit
  @text_edit
end

Instance Method Details

#to_hObject



10
11
12
13
14
15
# File 'lib/lsp.rb', line 10

def to_h
  {
    label: label,
    textEdit: text_edit.to_h,
  }
end