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:



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

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:



833
834
835
# File 'sig/types.rbs', line 833

def block_type
  @block_type
end

#childrenArray[FormattedBlock] (readonly)

Returns the value of attribute children.

Returns:



838
839
840
# File 'sig/types.rbs', line 838

def children
  @children
end

#codeString (readonly)

Returns the value of attribute code.

Returns:

  • (String)


837
838
839
# File 'sig/types.rbs', line 837

def code
  @code
end

#inline_contentArray[InlineElement] (readonly)

Returns the value of attribute inline_content.

Returns:



835
836
837
# File 'sig/types.rbs', line 835

def inline_content
  @inline_content
end

#languageString (readonly)

Returns the value of attribute language.

Returns:

  • (String)


836
837
838
# File 'sig/types.rbs', line 836

def language
  @language
end

#levelInteger (readonly)

Returns the value of attribute level.

Returns:

  • (Integer)


834
835
836
# File 'sig/types.rbs', line 834

def level
  @level
end