class LanguageServer::Protocol::Interface::StaticRegistrationOptions

Static registration options to be returned in the initialize request.

Attributes

attributes[R]

Public Class Methods

new(id: nil) click to toggle source
# File lib/language_server/protocol/interface/static_registration_options.rb, line 8
def initialize(id: nil)
  @attributes = {}

  @attributes[:id] = id if id

  @attributes.freeze
end

Public Instance Methods

id() click to toggle source

The id used to register the request. The id can be used to deregister the request again. See also Registration#id.

@return [string]

# File lib/language_server/protocol/interface/static_registration_options.rb, line 21
def id
  attributes.fetch(:id)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/static_registration_options.rb, line 27
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/static_registration_options.rb, line 31
def to_json(*args)
  to_hash.to_json(*args)
end