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