Class: TreeSitterLanguagePack::DocstringInfo

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDocstringInfo

Returns a new instance of DocstringInfo.

Parameters:



101
# File 'sig/types.rbs', line 101

def initialize: (?text: String, ?format: DocstringFormat, ?span: Span, ?associated_item: String, ?parsed_sections: Array[DocSection]) -> void

Instance Attribute Details

#associated_itemString?

Returns the value of attribute associated_item.

Returns:

  • (String, nil)


98
99
100
# File 'sig/types.rbs', line 98

def associated_item
  @associated_item
end

#formatDocstringFormat?

Returns the value of attribute format.

Returns:



96
97
98
# File 'sig/types.rbs', line 96

def format
  @format
end

#parsed_sectionsArray[DocSection]?

Returns the value of attribute parsed_sections.

Returns:



99
100
101
# File 'sig/types.rbs', line 99

def parsed_sections
  @parsed_sections
end

#spanSpan?

Returns the value of attribute span.

Returns:



97
98
99
# File 'sig/types.rbs', line 97

def span
  @span
end

#textString?

Returns the value of attribute text.

Returns:

  • (String, nil)


95
96
97
# File 'sig/types.rbs', line 95

def text
  @text
end