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