class LanguageServer::Protocol::Interface::Hover


The result of a hover request.

def contents

Returns:
  • (MarkupContent | MarkedString | MarkedString[]) -
def contents
  attributes.fetch(:contents)
end

def initialize(contents:, range: nil)

def initialize(contents:, range: nil)
  @attributes = {}
  @attributes[:contents] = contents
  @attributes[:range] = range if range
  @attributes.freeze
end

def range

Returns:
  • (Range) -
def range
  attributes.fetch(:range)
end

def to_hash

def to_hash
  attributes
end

def to_json(*args)

def to_json(*args)
  to_hash.to_json(*args)
end