Class: HtmlToMarkdown::NodeContentList
- Inherits:
-
Data
- Object
- Data
- HtmlToMarkdown::NodeContentList
- 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
-
#ordered ⇒ Object
readonly
Returns the value of attribute ordered.
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
#ordered ⇒ Object (readonly)
Returns the value of attribute 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
545 |
# File 'lib/html_to_markdown/native.rb', line 545 def code? = false |
#definition_item? ⇒ Boolean
551 |
# File 'lib/html_to_markdown/native.rb', line 551 def definition_item? = false |
#definition_list? ⇒ Boolean
549 |
# File 'lib/html_to_markdown/native.rb', line 549 def definition_list? = false |
#group? ⇒ 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
533 |
# File 'lib/html_to_markdown/native.rb', line 533 def heading? = false |
#image? ⇒ Boolean
543 |
# File 'lib/html_to_markdown/native.rb', line 543 def image? = false |
#list? ⇒ Boolean
537 |
# File 'lib/html_to_markdown/native.rb', line 537 def list? = true |
#list_item? ⇒ Boolean
539 |
# File 'lib/html_to_markdown/native.rb', line 539 def list_item? = false |
#metadata_block? ⇒ Boolean
555 |
# File 'lib/html_to_markdown/native.rb', line 555 def = false |
#paragraph? ⇒ Boolean
535 |
# File 'lib/html_to_markdown/native.rb', line 535 def paragraph? = false |
#quote? ⇒ Boolean
547 |
# File 'lib/html_to_markdown/native.rb', line 547 def quote? = false |
#raw_block? ⇒ Boolean
553 |
# File 'lib/html_to_markdown/native.rb', line 553 def raw_block? = false |
#table? ⇒ Boolean
541 |
# File 'lib/html_to_markdown/native.rb', line 541 def table? = false |