Sha256: 1e84ddaba442b047f853b42811a1c696de8be75fa3947a3b1d740a0a787ff9f8
Contents?: true
Size: 830 Bytes
Versions: 9
Compression:
Stored size: 830 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_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems