Class: LSP::MarkupContent
Overview
export interface MarkupContent
/**
* The type of the Markup
*/
kind: MarkupKind;
/**
* The content itself
*/
value: string;
Instance Attribute Summary collapse
-
#kind ⇒ Object
type: MarkupKind # type: string.
-
#value ⇒ Object
type: MarkupKind # type: string.
Instance Method Summary collapse
Methods inherited from LSPBase
Constructor Details
This class inherits a constructor from LSP::LSPBase
Instance Attribute Details
#kind ⇒ Object
type: MarkupKind # type: string
738 739 740 |
# File 'lib/lsp/lsp_types.rb', line 738 def kind @kind end |
#value ⇒ Object
type: MarkupKind # type: string
738 739 740 |
# File 'lib/lsp/lsp_types.rb', line 738 def value @value end |
Instance Method Details
#from_h!(value) ⇒ Object
740 741 742 743 744 745 |
# File 'lib/lsp/lsp_types.rb', line 740 def from_h!(value) value = {} if value.nil? self.kind = value['kind'] # Unknown type self.value = value['value'] self end |