Class: LSP::Hover
Overview
export interface Hover
/**
* The hover's content
*/
contents: MarkupContent | MarkedString | MarkedString[];
/**
* An optional range
*/
range?: Range;
Instance Attribute Summary collapse
-
#contents ⇒ Object
type: MarkupContent | MarkedString | MarkedString[] # type: Range.
-
#range ⇒ Object
type: MarkupContent | MarkedString | MarkedString[] # type: Range.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ Hover
constructor
A new instance of Hover.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ Hover
Returns a new instance of Hover.
921 922 923 924 |
# File 'lib/lsp/lsp_types.rb', line 921 def initialize(initial_hash = nil) super @optional_method_names = %i[range] end |
Instance Attribute Details
#contents ⇒ Object
type: MarkupContent | MarkedString | MarkedString[] # type: Range
919 920 921 |
# File 'lib/lsp/lsp_types.rb', line 919 def contents @contents end |
#range ⇒ Object
type: MarkupContent | MarkedString | MarkedString[] # type: Range
919 920 921 |
# File 'lib/lsp/lsp_types.rb', line 919 def range @range end |