Class: Xberg::FormattedBlock

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFormattedBlock

Returns a new instance of FormattedBlock.

Parameters:



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

def initialize: (block_type: BlockType, ?level: Integer, inline_content: Array[InlineElement], ?language: String, ?code: String, children: Array[FormattedBlock]) -> void

Instance Attribute Details

#block_typeBlockType (readonly)

Returns the value of attribute block_type.

Returns:



809
810
811
# File 'sig/types.rbs', line 809

def block_type
  @block_type
end

#childrenArray[FormattedBlock] (readonly)

Returns the value of attribute children.

Returns:



814
815
816
# File 'sig/types.rbs', line 814

def children
  @children
end

#codeString (readonly)

Returns the value of attribute code.

Returns:

  • (String)


813
814
815
# File 'sig/types.rbs', line 813

def code
  @code
end

#inline_contentArray[InlineElement] (readonly)

Returns the value of attribute inline_content.

Returns:



811
812
813
# File 'sig/types.rbs', line 811

def inline_content
  @inline_content
end

#languageString (readonly)

Returns the value of attribute language.

Returns:

  • (String)


812
813
814
# File 'sig/types.rbs', line 812

def language
  @language
end

#levelInteger (readonly)

Returns the value of attribute level.

Returns:

  • (Integer)


810
811
812
# File 'sig/types.rbs', line 810

def level
  @level
end