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:



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

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:



774
775
776
# File 'sig/types.rbs', line 774

def block_type
  @block_type
end

#childrenArray[FormattedBlock] (readonly)

Returns the value of attribute children.

Returns:



779
780
781
# File 'sig/types.rbs', line 779

def children
  @children
end

#codeString (readonly)

Returns the value of attribute code.

Returns:

  • (String)


778
779
780
# File 'sig/types.rbs', line 778

def code
  @code
end

#inline_contentArray[InlineElement] (readonly)

Returns the value of attribute inline_content.

Returns:



776
777
778
# File 'sig/types.rbs', line 776

def inline_content
  @inline_content
end

#languageString (readonly)

Returns the value of attribute language.

Returns:

  • (String)


777
778
779
# File 'sig/types.rbs', line 777

def language
  @language
end

#levelInteger (readonly)

Returns the value of attribute level.

Returns:

  • (Integer)


775
776
777
# File 'sig/types.rbs', line 775

def level
  @level
end