class LanguageServer::Protocol::Interface::SignatureInformation
a set of parameters.
can have a label, like a function-name, a doc-comment, and
Represents the signature of something callable. A signature
def active_parameter
-
(number)
-
def active_parameter attributes.fetch(:activeParameter) end
def documentation
-
(string | MarkupContent)
-
def documentation attributes.fetch(:documentation) end
def initialize(label:, documentation: nil, parameters: nil, active_parameter: nil)
def initialize(label:, documentation: nil, parameters: nil, active_parameter: nil) @attributes = {} @attributes[:label] = label @attributes[:documentation] = documentation if documentation @attributes[:parameters] = parameters if parameters @attributes[:activeParameter] = active_parameter if active_parameter @attributes.freeze end
def label
-
(string)
-
def label attributes.fetch(:label) end
def parameters
-
(ParameterInformation[])
-
def parameters attributes.fetch(:parameters) end
def to_hash
def to_hash attributes end
def to_json(*args)
def to_json(*args) to_hash.to_json(*args) end