Sha256: 76c777d2ea87e3419ca45cfbf7405b38df21f75e73881d5d3230efba7c58f6a6
Contents?: true
Size: 1.17 KB
Versions: 104
Compression:
Stored size: 1.17 KB
Contents
module LanguageServer module Protocol module Interface # # General parameters to register for a capability. # class Registration def initialize(id:, method:, register_options: nil) @attributes = {} @attributes[:id] = id @attributes[:method] = method @attributes[:registerOptions] = register_options if register_options @attributes.freeze end # # The id used to register the request. The id can be used to deregister # the request again. # # @return [string] def id attributes.fetch(:id) end # # The method / capability to register for. # # @return [string] def method attributes.fetch(:method) end # # Options necessary for the registration. # # @return [LSPAny] def register_options attributes.fetch(:registerOptions) 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
104 entries across 104 versions & 13 rubygems