Class: HtmlToMarkdown::NodeContentListItem

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

Overview

A single list item.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#text ⇒ Object (readonly)

Returns the value of attribute text

Returns:

  • (Object) —

    the current value of text



566
567
568
# File 'lib/html_to_markdown/native.rb', line 566

def text
  @text
end

Class Method Details

.from_hash(hash) ⇒ Object



602
603
604
# File 'lib/html_to_markdown/native.rb', line 602

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

Instance Method Details

#code? ⇒ Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item? ⇒ Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list? ⇒ Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group? ⇒ Boolean

Returns:

  • (Boolean)


598
599
600
# File 'lib/html_to_markdown/native.rb', line 598

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

#heading? ⇒ Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image? ⇒ Boolean

Returns:

  • (Boolean)


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

def image? = false

#list? ⇒ Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item? ⇒ Boolean

Returns:

  • (Boolean)


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

def list_item? = true

#metadata_block? ⇒ Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph? ⇒ Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#quote? ⇒ Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block? ⇒ Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table? ⇒ Boolean

Returns:

  • (Boolean)


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

def table? = false