Class: HtmlToMarkdown::NodeContext

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ NodeContext

Returns a new instance of NodeContext.

Parameters:

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


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.

Returns:

  • (Integer)


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.

Returns:

  • (Integer)


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.

Returns:

  • (Boolean)


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.

Returns:

  • (enum_NodeType)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (String)


226
227
228
# File 'sig/types.rbs', line 226

def tag_name
  @tag_name
end

Instance Method Details

#attributes ⇒ Hash[String, String]

Returns:

  • (Hash[String, String])


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

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

#into_owned ⇒ NodeContext

Returns:



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

def into_owned: () -> NodeContext