Sha256: 722ef2eabff8c679b2df779222c11f7a4ac4c02746ffb4b80734fcbd667a5cac
Contents?: true
Size: 841 Bytes
Versions: 3
Compression:
Stored size: 841 Bytes
Contents
module LanguageServer module Protocol module Interface class PrepareRenameParams 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
3 entries across 3 versions & 1 rubygems