class LanguageServer::Protocol::Interface::TextDocumentEdit

Attributes

attributes[R]

Public Class Methods

new(text_document:, edits:) click to toggle source
# File lib/language_server/protocol/interface/text_document_edit.rb, line 5
def initialize(text_document:, edits:)
  @attributes = {}

  @attributes[:textDocument] = text_document
  @attributes[:edits] = edits

  @attributes.freeze
end

Public Instance Methods

edits() click to toggle source

The edits to be applied.

@return [(TextEdit | AnnotatedTextEdit)

# File lib/language_server/protocol/interface/text_document_edit.rb, line 26
def edits
  attributes.fetch(:edits)
end
text_document() click to toggle source

The text document to change.

@return [OptionalVersionedTextDocumentIdentifier]

# File lib/language_server/protocol/interface/text_document_edit.rb, line 18
def text_document
  attributes.fetch(:textDocument)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/text_document_edit.rb, line 32
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/text_document_edit.rb, line 36
def to_json(*args)
  to_hash.to_json(*args)
end