Sha256: dd9b35a5240c3c00f38056e20bd65b992db03920c017b90958fba9d1c758cd96
Contents?: true
Size: 780 Bytes
Versions: 7
Compression:
Stored size: 780 Bytes
Contents
module LanguageServer module Protocol module Interfaces 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
7 entries across 7 versions & 2 rubygems