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])


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

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:



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

def annotations
  @annotations
end

#attributesHash[String, String]? (readonly)

Returns the value of attribute attributes.

Returns:

  • (Hash[String, String], nil)


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

def attributes
  @attributes
end

#childrenArray[Integer] (readonly)

Returns the value of attribute children.

Returns:

  • (Array[Integer])


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

def children
  @children
end

#contentNodeContent (readonly)

Returns the value of attribute content.

Returns:



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

def content
  @content
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


210
211
212
# File 'sig/types.rbs', line 210

def id
  @id
end

#parentInteger? (readonly)

Returns the value of attribute parent.

Returns:

  • (Integer, nil)


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

def parent
  @parent
end