Class: HtmlToMarkdown::NodeContext

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNodeContext

Returns a new instance of NodeContext.

Parameters:

  • node_type: (NodeType)
  • tag_name: (String)
  • depth: (Integer)
  • index_in_parent: (Integer)
  • parent_tag: (String)
  • is_inline: (Boolean)


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

def initialize: (node_type: NodeType, tag_name: String, depth: Integer, index_in_parent: Integer, ?parent_tag: String, is_inline: bool) -> void

Instance Attribute Details

#depthInteger (readonly)

Returns the value of attribute depth.

Returns:

  • (Integer)


284
285
286
# File 'sig/types.rbs', line 284

def depth
  @depth
end

#index_in_parentInteger (readonly)

Returns the value of attribute index_in_parent.

Returns:

  • (Integer)


285
286
287
# File 'sig/types.rbs', line 285

def index_in_parent
  @index_in_parent
end

#is_inlineBoolean (readonly)

Returns the value of attribute is_inline.

Returns:

  • (Boolean)


287
288
289
# File 'sig/types.rbs', line 287

def is_inline
  @is_inline
end

#node_typeNodeType (readonly)

Returns the value of attribute node_type.

Returns:



282
283
284
# File 'sig/types.rbs', line 282

def node_type
  @node_type
end

#parent_tagString? (readonly)

Returns the value of attribute parent_tag.

Returns:

  • (String, nil)


286
287
288
# File 'sig/types.rbs', line 286

def parent_tag
  @parent_tag
end

#tag_nameString (readonly)

Returns the value of attribute tag_name.

Returns:

  • (String)


283
284
285
# File 'sig/types.rbs', line 283

def tag_name
  @tag_name
end

Instance Method Details

#attributesHash[String, String]

Returns:

  • (Hash[String, String])


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

def attributes: () -> Hash[String, String]

#into_ownedNodeContext

Returns:



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

def into_owned: () -> NodeContext