Class: HtmlToMarkdown::DocumentNode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDocumentNode

Returns a new instance of DocumentNode.

Parameters:

  • id: (String)
  • content: (NodeContent)
  • parent: (Integer)
  • children: (Array[Integer])
  • annotations: (Array[TextAnnotation])
  • attributes: (Hash[String, String])


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

def initialize: (id: String, content: NodeContent, ?parent: Integer, children: Array[Integer], annotations: Array[TextAnnotation], ?attributes: Hash[String, String]) -> void

Instance Attribute Details

#annotationsArray[TextAnnotation] (readonly)

Returns the value of attribute annotations.

Returns:



216
217
218
# File 'sig/types.rbs', line 216

def annotations
  @annotations
end

#attributesHash[String, String] (readonly)

Returns the value of attribute attributes.

Returns:

  • (Hash[String, String])


217
218
219
# File 'sig/types.rbs', line 217

def attributes
  @attributes
end

#childrenArray[Integer] (readonly)

Returns the value of attribute children.

Returns:

  • (Array[Integer])


215
216
217
# File 'sig/types.rbs', line 215

def children
  @children
end

#contentNodeContent (readonly)

Returns the value of attribute content.

Returns:



213
214
215
# File 'sig/types.rbs', line 213

def content
  @content
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


212
213
214
# File 'sig/types.rbs', line 212

def id
  @id
end

#parentInteger (readonly)

Returns the value of attribute parent.

Returns:

  • (Integer)


214
215
216
# File 'sig/types.rbs', line 214

def parent
  @parent
end