Sha256: 10523d014d61aa5226029a13acf516f50b8f9735646c729539510fc7274cc955
Contents?: true
Size: 779 Bytes
Versions: 2
Compression:
Stored size: 779 Bytes
Contents
module LanguageServer module Protocol module Interface class TextDocumentEdit def initialize(text_document:, edits:) @attributes = {} @attributes[:textDocument] = text_document @attributes[:edits] = edits @attributes.freeze end # # The text document to change. # # @return [VersionedTextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The edits to be applied. # # @return [TextEdit[]] def edits attributes.fetch(:edits) end attr_reader :attributes def to_json(*args) attributes.to_json(*args) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
language_server-protocol-0.4.0 | lib/language_server/protocol/interface/text_document_edit.rb |
language_server-protocol-0.3.0 | lib/language_server/protocol/interface/text_document_edit.rb |