class LanguageServer::Protocol::Interface::Unregistration
General parameters to unregister a capability.
Attributes
attributes[R]
Public Class Methods
new(id:, method:)
click to toggle source
# File lib/language_server/protocol/interface/unregistration.rb, line 8 def initialize(id:, method:) @attributes = {} @attributes[:id] = id @attributes[:method] = method @attributes.freeze end
Public Instance Methods
id()
click to toggle source
The id used to unregister the request or notification. Usually an id provided during the register request.
@return [string]
# File lib/language_server/protocol/interface/unregistration.rb, line 22 def id attributes.fetch(:id) end
method()
click to toggle source
The method / capability to unregister for.
@return [string]
# File lib/language_server/protocol/interface/unregistration.rb, line 30 def method attributes.fetch(:method) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/unregistration.rb, line 36 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/unregistration.rb, line 40 def to_json(*args) to_hash.to_json(*args) end