Class: Xberg::DocumentStructure

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDocumentStructure

Returns a new instance of DocumentStructure.

Parameters:



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

def initialize: (?nodes: Array[DocumentNode], ?source_format: String, ?relationships: Array[DocumentRelationship], ?node_types: Array[String]) -> void

Instance Attribute Details

#node_typesArray[String] (readonly)

Returns the value of attribute node_types.

Returns:

  • (Array[String])


636
637
638
# File 'sig/types.rbs', line 636

def node_types
  @node_types
end

#nodesArray[DocumentNode] (readonly)

Returns the value of attribute nodes.

Returns:



633
634
635
# File 'sig/types.rbs', line 633

def nodes
  @nodes
end

#relationshipsArray[DocumentRelationship] (readonly)

Returns the value of attribute relationships.

Returns:



635
636
637
# File 'sig/types.rbs', line 635

def relationships
  @relationships
end

#source_formatString? (readonly)

Returns the value of attribute source_format.

Returns:

  • (String, nil)


634
635
636
# File 'sig/types.rbs', line 634

def source_format
  @source_format
end

Instance Method Details

#finalize_node_typesvoid

This method returns an undefined value.



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

def finalize_node_types: () -> void

#is_emptyBoolean

Returns:

  • (Boolean)


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

def is_empty: () -> bool