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:



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

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

Instance Attribute Details

#associated_itemString? (readonly)

Returns the value of attribute associated_item.

Returns:

  • (String, nil)


92
93
94
# File 'sig/types.rbs', line 92

def associated_item
  @associated_item
end

#formatDocstringFormat (readonly)

Returns the value of attribute format.

Returns:



90
91
92
# File 'sig/types.rbs', line 90

def format
  @format
end

#parsed_sectionsArray[DocSection] (readonly)

Returns the value of attribute parsed_sections.

Returns:



93
94
95
# File 'sig/types.rbs', line 93

def parsed_sections
  @parsed_sections
end

#spanSpan (readonly)

Returns the value of attribute span.

Returns:



91
92
93
# File 'sig/types.rbs', line 91

def span
  @span
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


89
90
91
# File 'sig/types.rbs', line 89

def text
  @text
end