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 ⇒ 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.
Class Method Summary collapse
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.
291 |
# File 'sig/types.rbs', line 291
def initialize: (node_type: 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.
286 287 288 |
# File 'sig/types.rbs', line 286 def depth @depth end |
#index_in_parent ⇒ Integer (readonly)
Returns the value of attribute index_in_parent.
287 288 289 |
# File 'sig/types.rbs', line 287 def index_in_parent @index_in_parent end |
#is_inline ⇒ Boolean (readonly)
Returns the value of attribute is_inline.
289 290 291 |
# File 'sig/types.rbs', line 289 def is_inline @is_inline end |
#node_type ⇒ NodeType (readonly)
Returns the value of attribute node_type.
284 285 286 |
# File 'sig/types.rbs', line 284 def node_type @node_type end |
#parent_tag ⇒ String (readonly)
Returns the value of attribute parent_tag.
288 289 290 |
# File 'sig/types.rbs', line 288 def parent_tag @parent_tag end |
#tag_name ⇒ String (readonly)
Returns the value of attribute tag_name.
285 286 287 |
# File 'sig/types.rbs', line 285 def tag_name @tag_name end |
Class Method Details
.with_owned_attributes ⇒ NodeContext
294 |
# File 'sig/types.rbs', line 294
def self.with_owned_attributes: (NodeType node_type, String tag_name, Hash[String, String] attributes, Integer depth, Integer index_in_parent, ?String parent_tag, bool is_inline) -> NodeContext
|
Instance Method Details
#attributes ⇒ Hash[String, String]
292 |
# File 'sig/types.rbs', line 292
def attributes: () -> Hash[String, String]
|