class LanguageServer::Protocol::Interface::HoverClientCapabilities
Attributes
attributes[R]
Public Class Methods
new(dynamic_registration: nil, content_format: nil)
click to toggle source
# File lib/language_server/protocol/interface/hover_client_capabilities.rb, line 5 def initialize(dynamic_registration: nil, content_format: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:contentFormat] = content_format if content_format @attributes.freeze end
Public Instance Methods
content_format()
click to toggle source
Client supports the following content formats if the content property refers to a `literal of type MarkupContent`. The order describes the preferred format of the client.
@return [MarkupKind
# File lib/language_server/protocol/interface/hover_client_capabilities.rb, line 28 def content_format attributes.fetch(:contentFormat) end
dynamic_registration()
click to toggle source
Whether hover supports dynamic registration.
@return [boolean]
# File lib/language_server/protocol/interface/hover_client_capabilities.rb, line 18 def dynamic_registration attributes.fetch(:dynamicRegistration) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/hover_client_capabilities.rb, line 34 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/hover_client_capabilities.rb, line 38 def to_json(*args) to_hash.to_json(*args) end