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



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

def contents
  @contents
end

Instance Method Details

#to_hObject



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

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