Class: Xberg::DocumentStructure

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDocumentStructure

Returns a new instance of DocumentStructure.

Parameters:



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

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

Instance Attribute Details

#node_typesArray[String]?

Returns the value of attribute node_types.

Returns:

  • (Array[String], nil)


819
820
821
# File 'sig/types.rbs', line 819

def node_types
  @node_types
end

#nodesArray[DocumentNode]?

Returns the value of attribute nodes.

Returns:



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

def nodes
  @nodes
end

#relationshipsArray[DocumentRelationship]?

Returns the value of attribute relationships.

Returns:



818
819
820
# File 'sig/types.rbs', line 818

def relationships
  @relationships
end

#source_formatString?

Returns the value of attribute source_format.

Returns:

  • (String, nil)


817
818
819
# File 'sig/types.rbs', line 817

def source_format
  @source_format
end

Class Method Details

.defaultDocumentStructure

Returns:



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

def self.default: () -> DocumentStructure

Instance Method Details

#finalize_node_typesvoid

This method returns an undefined value.



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

def finalize_node_types: () -> void

#is_emptyBoolean

Returns:

  • (Boolean)


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

def is_empty: () -> bool