Sha256: ae7bdeb59896bf8ade155ee3da2e382496f74c2cf5256b83f665a5be29c0bffb
Contents?: true
Size: 775 Bytes
Versions: 9
Compression:
Stored size: 775 Bytes
Contents
module LanguageServer module Protocol module Interface class LogMessageParams 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