Class: HtmlToMarkdown::NodeContentMetadataBlock
- Inherits:
-
Data
- Object
- Data
- HtmlToMarkdown::NodeContentMetadataBlock
- Extended by:
- T::Sig
- Includes:
- NodeContent
- Defined in:
- lib/html_to_markdown/native.rb
Overview
A block of key-value metadata pairs (from <head> meta tags).
Instance Attribute Summary collapse
-
#entries ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
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
#entries ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
569 570 571 |
# File 'lib/html_to_markdown/native.rb', line 569 def entries @entries end |
Class Method Details
.from_hash(hash) ⇒ Object
606 607 608 |
# File 'lib/html_to_markdown/native.rb', line 606 def self.from_hash(hash) new(entries: hash[:entries] || hash["entries"]) end |
Instance Method Details
#code? ⇒ Boolean
590 |
# File 'lib/html_to_markdown/native.rb', line 590 def code? = false |
#definition_item? ⇒ Boolean
596 |
# File 'lib/html_to_markdown/native.rb', line 596 def definition_item? = false |
#definition_list? ⇒ Boolean
594 |
# File 'lib/html_to_markdown/native.rb', line 594 def definition_list? = false |
#group? ⇒ Boolean
602 603 604 |
# File 'lib/html_to_markdown/native.rb', line 602 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
578 |
# File 'lib/html_to_markdown/native.rb', line 578 def heading? = false |
#image? ⇒ Boolean
588 |
# File 'lib/html_to_markdown/native.rb', line 588 def image? = false |
#list? ⇒ Boolean
582 |
# File 'lib/html_to_markdown/native.rb', line 582 def list? = false |
#list_item? ⇒ Boolean
584 |
# File 'lib/html_to_markdown/native.rb', line 584 def list_item? = false |
#metadata_block? ⇒ Boolean
600 |
# File 'lib/html_to_markdown/native.rb', line 600 def = true |
#paragraph? ⇒ Boolean
580 |
# File 'lib/html_to_markdown/native.rb', line 580 def paragraph? = false |
#quote? ⇒ Boolean
592 |
# File 'lib/html_to_markdown/native.rb', line 592 def quote? = false |
#raw_block? ⇒ Boolean
598 |
# File 'lib/html_to_markdown/native.rb', line 598 def raw_block? = false |
#table? ⇒ Boolean
586 |
# File 'lib/html_to_markdown/native.rb', line 586 def table? = false |