Sha256: e502c0c36a0008e2227fd3f71dd0ad63e8d05a2b3ea8911f0f00f900299cf471
Contents?: true
Size: 1.16 KB
Versions: 5
Compression:
Stored size: 1.16 KB
Contents
module LanguageServer module Protocol module Interface class ClientCapabilities def initialize(workspace: nil, text_document: nil, experimental: nil) @attributes = {} @attributes[:workspace] = workspace if workspace @attributes[:textDocument] = text_document if text_document @attributes[:experimental] = experimental if experimental @attributes.freeze end # # Workspace specific client capabilities. # # @return [WorkspaceClientCapabilities] def workspace attributes.fetch(:workspace) end # # Text document specific client capabilities. # # @return [TextDocumentClientCapabilities] def text_document attributes.fetch(:textDocument) end # # Experimental client capabilities. # # @return [any] def experimental attributes.fetch(:experimental) 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
5 entries across 5 versions & 1 rubygems