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
596 597 598 |
# File 'lib/html_to_markdown/native.rb', line 596 def entries @entries end |
Class Method Details
.from_hash(hash) ⇒ Object
633 634 635 |
# File 'lib/html_to_markdown/native.rb', line 633 def self.from_hash(hash) new(entries: hash[:entries] || hash["entries"]) end |
Instance Method Details
#code? ⇒ Boolean
617 |
# File 'lib/html_to_markdown/native.rb', line 617 def code? = false |
#definition_item? ⇒ Boolean
623 |
# File 'lib/html_to_markdown/native.rb', line 623 def definition_item? = false |
#definition_list? ⇒ Boolean
621 |
# File 'lib/html_to_markdown/native.rb', line 621 def definition_list? = false |
#group? ⇒ Boolean
629 630 631 |
# File 'lib/html_to_markdown/native.rb', line 629 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
605 |
# File 'lib/html_to_markdown/native.rb', line 605 def heading? = false |
#image? ⇒ Boolean
615 |
# File 'lib/html_to_markdown/native.rb', line 615 def image? = false |
#list? ⇒ Boolean
609 |
# File 'lib/html_to_markdown/native.rb', line 609 def list? = false |
#list_item? ⇒ Boolean
611 |
# File 'lib/html_to_markdown/native.rb', line 611 def list_item? = false |
#metadata_block? ⇒ Boolean
627 |
# File 'lib/html_to_markdown/native.rb', line 627 def = true |
#paragraph? ⇒ Boolean
607 |
# File 'lib/html_to_markdown/native.rb', line 607 def paragraph? = false |
#quote? ⇒ Boolean
619 |
# File 'lib/html_to_markdown/native.rb', line 619 def quote? = false |
#raw_block? ⇒ Boolean
625 |
# File 'lib/html_to_markdown/native.rb', line 625 def raw_block? = false |
#table? ⇒ Boolean
613 |
# File 'lib/html_to_markdown/native.rb', line 613 def table? = false |