Class: Lsp::TextDocumentHoverResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/lsp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentsObject

Returns the value of attribute contents

Returns:

  • (Object)

    the current value of contents



57
58
59
# File 'lib/lsp.rb', line 57

def contents
  @contents
end

Instance Method Details

#to_hObject



58
59
60
61
62
63
# File 'lib/lsp.rb', line 58

def to_h
  {
    contents: self.contents,
    range: nil,
  }
end