Sha256: b3c02083e1d5c958a1bbda1029cc5c345ee40217dc96e90815a7849e1a63493e
Contents?: true
Size: 874 Bytes
Versions: 4
Compression:
Stored size: 874 Bytes
Contents
module LanguageServer module Protocol module Interface # # Code Action options. # class CodeActionOptions def initialize(code_action_kinds: nil) @attributes = {} @attributes[:codeActionKinds] = code_action_kinds if code_action_kinds @attributes.freeze end # # CodeActionKinds that this server may return. # # The list of kinds may be generic, such as `CodeActionKind.Refactor`, or the server # may list out every specific kind they provide. # # @return [string[]] def code_action_kinds attributes.fetch(:codeActionKinds) 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
4 entries across 4 versions & 1 rubygems