Class: HtmlToMarkdown::NodeContentListItem
- Inherits:
-
Data
- Object
- Data
- HtmlToMarkdown::NodeContentListItem
- Extended by:
- T::Sig
- Includes:
- NodeContent
- Defined in:
- lib/html_to_markdown/native.rb
Overview
A single list item.
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Class Method Summary collapse
Instance Method Summary collapse
- #code? ⇒ Boolean
- #definition_item? ⇒ Boolean
- #definition_list? ⇒ Boolean
- #group? ⇒ Boolean
- #heading? ⇒ Boolean
- #image? ⇒ Boolean
- #list? ⇒ Boolean
- #list_item? ⇒ Boolean
- #metadata_block? ⇒ Boolean
- #paragraph? ⇒ Boolean
- #quote? ⇒ Boolean
- #raw_block? ⇒ Boolean
- #table? ⇒ Boolean
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute 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
586 |
# File 'lib/html_to_markdown/native.rb', line 586 def code? = false |
#definition_item? ⇒ Boolean
592 |
# File 'lib/html_to_markdown/native.rb', line 592 def definition_item? = false |
#definition_list? ⇒ Boolean
590 |
# File 'lib/html_to_markdown/native.rb', line 590 def definition_list? = false |
#group? ⇒ 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
574 |
# File 'lib/html_to_markdown/native.rb', line 574 def heading? = false |
#image? ⇒ Boolean
584 |
# File 'lib/html_to_markdown/native.rb', line 584 def image? = false |
#list? ⇒ Boolean
578 |
# File 'lib/html_to_markdown/native.rb', line 578 def list? = false |
#list_item? ⇒ Boolean
580 |
# File 'lib/html_to_markdown/native.rb', line 580 def list_item? = true |
#metadata_block? ⇒ Boolean
596 |
# File 'lib/html_to_markdown/native.rb', line 596 def = false |
#paragraph? ⇒ Boolean
576 |
# File 'lib/html_to_markdown/native.rb', line 576 def paragraph? = false |
#quote? ⇒ Boolean
588 |
# File 'lib/html_to_markdown/native.rb', line 588 def quote? = false |
#raw_block? ⇒ Boolean
594 |
# File 'lib/html_to_markdown/native.rb', line 594 def raw_block? = false |
#table? ⇒ Boolean
582 |
# File 'lib/html_to_markdown/native.rb', line 582 def table? = false |