Class: HtmlToMarkdown::NodeContext
- Inherits:
-
Object
- Object
- HtmlToMarkdown::NodeContext
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#depth ⇒ Integer
readonly
Returns the value of attribute depth.
-
#index_in_parent ⇒ Integer
readonly
Returns the value of attribute index_in_parent.
-
#is_inline ⇒ Boolean
readonly
Returns the value of attribute is_inline.
-
#node_type ⇒ enum_NodeType
readonly
Returns the value of attribute node_type.
-
#parent_tag ⇒ String?
readonly
Returns the value of attribute parent_tag.
-
#tag_name ⇒ String
readonly
Returns the value of attribute tag_name.
Instance Method Summary collapse
- #attributes ⇒ Hash[String, String]
-
#initialize ⇒ NodeContext
constructor
A new instance of NodeContext.
- #into_owned ⇒ NodeContext
Constructor Details
#initialize ⇒ NodeContext
Returns a new instance of NodeContext.
232 |
# File 'sig/types.rbs', line 232 def initialize: (node_type: enum_NodeType, tag_name: String, depth: Integer, index_in_parent: Integer, ?parent_tag: String, is_inline: bool) -> void |
Instance Attribute Details
#depth ⇒ Integer (readonly)
Returns the value of attribute depth.
227 228 229 |
# File 'sig/types.rbs', line 227 def depth @depth end |
#index_in_parent ⇒ Integer (readonly)
Returns the value of attribute index_in_parent.
228 229 230 |
# File 'sig/types.rbs', line 228 def index_in_parent @index_in_parent end |
#is_inline ⇒ Boolean (readonly)
Returns the value of attribute is_inline.
230 231 232 |
# File 'sig/types.rbs', line 230 def is_inline @is_inline end |
#node_type ⇒ enum_NodeType (readonly)
Returns the value of attribute node_type.
225 226 227 |
# File 'sig/types.rbs', line 225 def node_type @node_type end |
#parent_tag ⇒ String? (readonly)
Returns the value of attribute parent_tag.
229 230 231 |
# File 'sig/types.rbs', line 229 def parent_tag @parent_tag end |
#tag_name ⇒ String (readonly)
Returns the value of attribute tag_name.
226 227 228 |
# File 'sig/types.rbs', line 226 def tag_name @tag_name end |
Instance Method Details
#attributes ⇒ Hash[String, String]
233 |
# File 'sig/types.rbs', line 233 def attributes: () -> Hash[String, String] |