Sha256: 42191e5a17486e4fe8cb8add0f9c1aa286767b115b34f352d024ce938ee2f145
Contents?: true
Size: 754 Bytes
Versions: 4
Compression:
Stored size: 754 Bytes
Contents
module LanguageServer module Protocol module Interface class FoldingRangeParams < PartialResultParams def initialize(partial_result_token: nil, text_document:) @attributes = {} @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:textDocument] = text_document @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) 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
4 entries across 4 versions & 1 rubygems