Class: Lsp::TextEdit

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#new_textObject

Returns the value of attribute new_text

Returns:

  • (Object)

    the current value of new_text



17
18
19
# File 'lib/lsp.rb', line 17

def new_text
  @new_text
end

#rangeObject

Returns the value of attribute range

Returns:

  • (Object)

    the current value of range



17
18
19
# File 'lib/lsp.rb', line 17

def range
  @range
end

Instance Method Details

#to_hObject



18
19
20
21
22
23
# File 'lib/lsp.rb', line 18

def to_h
  {
    range: range.to_h,
    newText: new_text,
  }
end