Sha256: 5de03fc48b2329898fc172df51c003e9a907e35202e9542a8a858a8e7da97187
Contents?: true
Size: 909 Bytes
Versions: 111
Compression:
Stored size: 909 Bytes
Contents
module LanguageServer module Protocol module Interface class InitializeResult def initialize(capabilities:, server_info: nil) @attributes = {} @attributes[:capabilities] = capabilities @attributes[:serverInfo] = server_info if server_info @attributes.freeze end # # The capabilities the language server provides. # # @return [ServerCapabilities] def capabilities attributes.fetch(:capabilities) end # # Information about the server. # # @return [{ name: string; version?: string; }] def server_info attributes.fetch(:serverInfo) 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
111 entries across 111 versions & 13 rubygems