Class: HtmlToMarkdown::NodeContext

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

Instance Attribute Summary collapse

Class Method 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)


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

#depthInteger (readonly)

Returns the value of attribute depth.

Returns:

  • (Integer)


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

def depth
  @depth
end

#index_in_parentInteger (readonly)

Returns the value of attribute index_in_parent.

Returns:

  • (Integer)


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

def index_in_parent
  @index_in_parent
end

#is_inlineBoolean (readonly)

Returns the value of attribute is_inline.

Returns:

  • (Boolean)


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

def is_inline
  @is_inline
end

#node_typeNodeType (readonly)

Returns the value of attribute node_type.

Returns:



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

def node_type
  @node_type
end

#parent_tagString (readonly)

Returns the value of attribute parent_tag.

Returns:

  • (String)


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

def parent_tag
  @parent_tag
end

#tag_nameString (readonly)

Returns the value of attribute tag_name.

Returns:

  • (String)


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

def tag_name
  @tag_name
end

Class Method Details

.with_owned_attributesNodeContext

Parameters:

  • node_type (NodeType)
  • tag_name (String)
  • attributes (Hash[String, String])
  • depth (Integer)
  • index_in_parent (Integer)
  • parent_tag (String)
  • is_inline (Boolean)

Returns:



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

#attributesHash[String, String]

Returns:

  • (Hash[String, String])


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

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

#into_ownedNodeContext

Returns:



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

def into_owned: () -> NodeContext