Class: HtmlToMarkdown::HeaderMetadata
- Inherits:
-
Object
- Object
- HtmlToMarkdown::HeaderMetadata
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#depth ⇒ Integer
readonly
Returns the value of attribute depth.
-
#html_offset ⇒ Integer
readonly
Returns the value of attribute html_offset.
-
#id ⇒ String?
readonly
Returns the value of attribute id.
-
#level ⇒ Integer
readonly
Returns the value of attribute level.
-
#text ⇒ String
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize ⇒ HeaderMetadata
constructor
A new instance of HeaderMetadata.
- #is_valid ⇒ Boolean
Constructor Details
#initialize ⇒ HeaderMetadata
Returns a new instance of HeaderMetadata.
174 |
# File 'sig/types.rbs', line 174 def initialize: (level: Integer, text: String, ?id: String, depth: Integer, html_offset: Integer) -> void |
Instance Attribute Details
#depth ⇒ Integer (readonly)
Returns the value of attribute depth.
171 172 173 |
# File 'sig/types.rbs', line 171 def depth @depth end |
#html_offset ⇒ Integer (readonly)
Returns the value of attribute html_offset.
172 173 174 |
# File 'sig/types.rbs', line 172 def html_offset @html_offset end |
#id ⇒ String? (readonly)
Returns the value of attribute id.
170 171 172 |
# File 'sig/types.rbs', line 170 def id @id end |
#level ⇒ Integer (readonly)
Returns the value of attribute level.
168 169 170 |
# File 'sig/types.rbs', line 168 def level @level end |
#text ⇒ String (readonly)
Returns the value of attribute text.
169 170 171 |
# File 'sig/types.rbs', line 169 def text @text end |
Instance Method Details
#is_valid ⇒ Boolean
175 |
# File 'sig/types.rbs', line 175 def is_valid: () -> bool |