Sha256: c16b22f21be4c2a7ee20199f7e6a6239734b1be2c0c2733276e8478756ffd90c
Contents?: true
Size: 788 Bytes
Versions: 2
Compression:
Stored size: 788 Bytes
Contents
module LanguageServer module Protocol module Interface class PublishDiagnosticsParams def initialize(uri:, diagnostics:) @attributes = {} @attributes[:uri] = uri @attributes[:diagnostics] = diagnostics @attributes.freeze end # # The URI for which diagnostic information is reported. # # @return [string] def uri attributes.fetch(:uri) end # # An array of diagnostic information items. # # @return [Diagnostic[]] def diagnostics attributes.fetch(:diagnostics) end attr_reader :attributes def to_json(*args) attributes.to_json(*args) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems