Class: HtmlToMarkdown::NodeContentList

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
NodeContent
Defined in:
lib/html_to_markdown/native.rb

Overview

A list container (ordered or unordered). Children are ListItem nodes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ordered ⇒ Object (readonly)

Returns the value of attribute ordered

Returns:

  • (Object) —

    the current value of ordered



525
526
527
# File 'lib/html_to_markdown/native.rb', line 525

def ordered
  @ordered
end

Class Method Details

.from_hash(hash) ⇒ Object



561
562
563
# File 'lib/html_to_markdown/native.rb', line 561

def self.from_hash(hash)
  new(ordered: hash[:ordered] || hash["ordered"])
end

Instance Method Details

#code? ⇒ Boolean

Returns:

  • (Boolean)


545
# File 'lib/html_to_markdown/native.rb', line 545

def code? = false

#definition_item? ⇒ Boolean

Returns:

  • (Boolean)


551
# File 'lib/html_to_markdown/native.rb', line 551

def definition_item? = false

#definition_list? ⇒ Boolean

Returns:

  • (Boolean)


549
# File 'lib/html_to_markdown/native.rb', line 549

def definition_list? = false

#group? ⇒ Boolean

Returns:

  • (Boolean)


557
558
559
# File 'lib/html_to_markdown/native.rb', line 557

def group? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#heading? ⇒ Boolean

Returns:

  • (Boolean)


533
# File 'lib/html_to_markdown/native.rb', line 533

def heading? = false

#image? ⇒ Boolean

Returns:

  • (Boolean)


543
# File 'lib/html_to_markdown/native.rb', line 543

def image? = false

#list? ⇒ Boolean

Returns:

  • (Boolean)


537
# File 'lib/html_to_markdown/native.rb', line 537

def list? = true

#list_item? ⇒ Boolean

Returns:

  • (Boolean)


539
# File 'lib/html_to_markdown/native.rb', line 539

def list_item? = false

#metadata_block? ⇒ Boolean

Returns:

  • (Boolean)


555
# File 'lib/html_to_markdown/native.rb', line 555

def  = false

#paragraph? ⇒ Boolean

Returns:

  • (Boolean)


535
# File 'lib/html_to_markdown/native.rb', line 535

def paragraph? = false

#quote? ⇒ Boolean

Returns:

  • (Boolean)


547
# File 'lib/html_to_markdown/native.rb', line 547

def quote? = false

#raw_block? ⇒ Boolean

Returns:

  • (Boolean)


553
# File 'lib/html_to_markdown/native.rb', line 553

def raw_block? = false

#table? ⇒ Boolean

Returns:

  • (Boolean)


541
# File 'lib/html_to_markdown/native.rb', line 541

def table? = false