Sha256: 7ba0f5df26847b1502a6ca785e03bca28c38d46ff5f0d539bbafb197df0bfde6
Contents?: true
Size: 778 Bytes
Versions: 9
Compression:
Stored size: 778 Bytes
Contents
module LanguageServer module Protocol module Interface class ShowMessageParams def initialize(type:, message:) @attributes = {} @attributes[:type] = type @attributes[:message] = message @attributes.freeze end # # The message type. See {@link MessageType}. # # @return [number] def type attributes.fetch(:type) end # # The actual message. # # @return [string] def message attributes.fetch(:message) 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
9 entries across 9 versions & 1 rubygems