Class: Xberg::TextMetadata

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTextMetadata

Returns a new instance of TextMetadata.

Parameters:

  • line_count: (Integer)
  • word_count: (Integer)
  • character_count: (Integer)
  • headers: (Array[String])
  • links: (Array[MarkdownLink])
  • code_blocks: (Array[MarkdownCodeBlock])


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

def initialize: (?line_count: Integer, ?word_count: Integer, ?character_count: Integer, ?headers: Array[String], ?links: Array[MarkdownLink], ?code_blocks: Array[MarkdownCodeBlock]) -> void

Instance Attribute Details

#character_countInteger (readonly)

Returns the value of attribute character_count.

Returns:

  • (Integer)


2565
2566
2567
# File 'sig/types.rbs', line 2565

def character_count
  @character_count
end

#code_blocksArray[MarkdownCodeBlock]? (readonly)

Returns the value of attribute code_blocks.

Returns:



2568
2569
2570
# File 'sig/types.rbs', line 2568

def code_blocks
  @code_blocks
end

#headersArray[String]? (readonly)

Returns the value of attribute headers.

Returns:

  • (Array[String], nil)


2566
2567
2568
# File 'sig/types.rbs', line 2566

def headers
  @headers
end

#line_countInteger (readonly)

Returns the value of attribute line_count.

Returns:

  • (Integer)


2563
2564
2565
# File 'sig/types.rbs', line 2563

def line_count
  @line_count
end

Returns the value of attribute links.

Returns:



2567
2568
2569
# File 'sig/types.rbs', line 2567

def links
  @links
end

#word_countInteger (readonly)

Returns the value of attribute word_count.

Returns:

  • (Integer)


2564
2565
2566
# File 'sig/types.rbs', line 2564

def word_count
  @word_count
end