Sha256: 9cb99cb955cc629035502773058887698c17ac32aebbcb9df918f221c2da7eee
Contents?: true
Size: 797 Bytes
Versions: 2
Compression:
Stored size: 797 Bytes
Contents
module LanguageServer module Protocol module Interface class TextDocumentPositionParams def initialize(text_document:, position:) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) 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