Class: Lsp::TextEdit
- Inherits:
-
Struct
- Object
- Struct
- Lsp::TextEdit
- Defined in:
- lib/lsp.rb
Instance Attribute Summary collapse
-
#new_text ⇒ Object
Returns the value of attribute new_text.
-
#range ⇒ Object
Returns the value of attribute range.
Instance Method Summary collapse
Instance Attribute Details
#new_text ⇒ Object
Returns the value of attribute new_text
17 18 19 |
# File 'lib/lsp.rb', line 17 def new_text @new_text end |
#range ⇒ Object
Returns the value of attribute range
17 18 19 |
# File 'lib/lsp.rb', line 17 def range @range end |
Instance Method Details
#to_h ⇒ Object
18 19 20 21 22 23 |
# File 'lib/lsp.rb', line 18 def to_h { range: range.to_h, newText: new_text, } end |