Class: Yoda::Model::Descriptions::Base Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/yoda/model/descriptions/base.rb

Overview

This class is abstract.

Instance Method Summary collapse

Instance Method Details

#labelString

Returns:

  • (String)


19
20
21
# File 'lib/yoda/model/descriptions/base.rb', line 19

def label
  sort_text
end

#markup_contentString, Hash

Return an LSP MarkedString content for description

Returns:

  • (String, Hash)


31
32
33
# File 'lib/yoda/model/descriptions/base.rb', line 31

def markup_content
  to_markdown
end

#sort_textString

This method is abstract.

Returns:

  • (String)


14
15
16
# File 'lib/yoda/model/descriptions/base.rb', line 14

def sort_text
  fail NotImplementedError
end

#titleString

This method is abstract.

Returns:

  • (String)


8
9
10
# File 'lib/yoda/model/descriptions/base.rb', line 8

def title
  fail NotImplementedError
end

#to_markdownString

This method is abstract.

Returns:

  • (String)


25
26
27
# File 'lib/yoda/model/descriptions/base.rb', line 25

def to_markdown
  fail NotImplementedError
end