Sha256: e735db0a06c41be851f73ebc452b4caee566a8129c3b5f02cfaeec10f4cdd6da
Contents?: true
Size: 980 Bytes
Versions: 7
Compression:
Stored size: 980 Bytes
Contents
module LanguageServer module Protocol module Interfaces class DidChangeTextDocumentParams def initialize(text_document:, content_changes:) @attributes = {} @attributes[:textDocument] = text_document @attributes[:contentChanges] = content_changes @attributes.freeze end # # The document that did change. The version number points # to the version after all provided content changes have # been applied. # # @return [VersionedTextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The actual content changes. # # @return [TextDocumentContentChangeEvent[]] def content_changes attributes.fetch(:contentChanges) 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