Sha256: cc82201f8765b0d49c633416eccbf9dfd7a4c1a949f0215e915ef161edb44ec6
Contents?: true
Size: 726 Bytes
Versions: 2
Compression:
Stored size: 726 Bytes
Contents
module LanguageServer module Protocol module Interface # # Contains additional diagnostic information about the context in which # a code action is run. # class CodeActionContext def initialize(diagnostics:) @attributes = {} @attributes[:diagnostics] = diagnostics @attributes.freeze end # # An array of diagnostics. # # @return [Diagnostic[]] def diagnostics attributes.fetch(:diagnostics) 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
2 entries across 2 versions & 1 rubygems