Class: HtmlToMarkdown::DocumentNode
- Inherits:
-
Object
- Object
- HtmlToMarkdown::DocumentNode
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#annotations ⇒ Array[TextAnnotation]
readonly
Returns the value of attribute annotations.
-
#attributes ⇒ Hash[String, String]
readonly
Returns the value of attribute attributes.
-
#children ⇒ Array[Integer]
readonly
Returns the value of attribute children.
-
#content ⇒ NodeContent
readonly
Returns the value of attribute content.
-
#id ⇒ String
readonly
Returns the value of attribute id.
-
#parent ⇒ Integer
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize ⇒ DocumentNode
constructor
A new instance of DocumentNode.
Constructor Details
#initialize ⇒ DocumentNode
Returns a new instance of DocumentNode.
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
#annotations ⇒ Array[TextAnnotation] (readonly)
Returns the value of attribute annotations.
216 217 218 |
# File 'sig/types.rbs', line 216 def annotations @annotations end |
#attributes ⇒ Hash[String, String] (readonly)
Returns the value of attribute attributes.
217 218 219 |
# File 'sig/types.rbs', line 217 def attributes @attributes end |
#children ⇒ Array[Integer] (readonly)
Returns the value of attribute children.
215 216 217 |
# File 'sig/types.rbs', line 215 def children @children end |
#content ⇒ NodeContent (readonly)
Returns the value of attribute content.
213 214 215 |
# File 'sig/types.rbs', line 213 def content @content end |
#id ⇒ String (readonly)
Returns the value of attribute id.
212 213 214 |
# File 'sig/types.rbs', line 212 def id @id end |
#parent ⇒ Integer (readonly)
Returns the value of attribute parent.
214 215 216 |
# File 'sig/types.rbs', line 214 def parent @parent end |