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:



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

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

Instance Attribute Details

#attributesAttributes? (readonly)

Returns the value of attribute attributes.

Returns:



1113
1114
1115
# File 'sig/types.rbs', line 1113

def attributes
  @attributes
end

#block_typeenum_BlockType (readonly)

Returns the value of attribute block_type.

Returns:

  • (enum_BlockType)


1110
1111
1112
# File 'sig/types.rbs', line 1110

def block_type
  @block_type
end

#childrenArray[FormattedBlock] (readonly)

Returns the value of attribute children.

Returns:



1116
1117
1118
# File 'sig/types.rbs', line 1116

def children
  @children
end

#codeString? (readonly)

Returns the value of attribute code.

Returns:

  • (String, nil)


1115
1116
1117
# File 'sig/types.rbs', line 1115

def code
  @code
end

#inline_contentArray[InlineElement] (readonly)

Returns the value of attribute inline_content.

Returns:



1112
1113
1114
# File 'sig/types.rbs', line 1112

def inline_content
  @inline_content
end

#languageString? (readonly)

Returns the value of attribute language.

Returns:

  • (String, nil)


1114
1115
1116
# File 'sig/types.rbs', line 1114

def language
  @language
end

#levelInteger? (readonly)

Returns the value of attribute level.

Returns:

  • (Integer, nil)


1111
1112
1113
# File 'sig/types.rbs', line 1111

def level
  @level
end