Class: HtmlToMarkdown::DocumentNode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ DocumentNode

Returns a new instance of DocumentNode.

Parameters:

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


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

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

Instance Attribute Details

#annotations ⇒ Array[TextAnnotation] (readonly)

Returns the value of attribute annotations.

Returns:



143
144
145
# File 'sig/types.rbs', line 143

def annotations
  @annotations
end

#attributes ⇒ Hash[String, String]? (readonly)

Returns the value of attribute attributes.

Returns:

  • (Hash[String, String], nil)


144
145
146
# File 'sig/types.rbs', line 144

def attributes
  @attributes
end

#children ⇒ Array[Integer] (readonly)

Returns the value of attribute children.

Returns:

  • (Array[Integer])


142
143
144
# File 'sig/types.rbs', line 142

def children
  @children
end

#content ⇒ NodeContent (readonly)

Returns the value of attribute content.

Returns:



140
141
142
# File 'sig/types.rbs', line 140

def content
  @content
end

#id ⇒ String (readonly)

Returns the value of attribute id.

Returns:

  • (String)


139
140
141
# File 'sig/types.rbs', line 139

def id
  @id
end

#parent ⇒ Integer? (readonly)

Returns the value of attribute parent.

Returns:

  • (Integer, nil)


141
142
143
# File 'sig/types.rbs', line 141

def parent
  @parent
end