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
532 533 534 |
# File 'lib/html_to_markdown/native.rb', line 532 def entries @entries end |
Class Method Details
.from_hash(hash) ⇒ Object
568 569 570 |
# File 'lib/html_to_markdown/native.rb', line 568 def self.from_hash(hash) new(entries: hash[:entries] || hash["entries"]) end |
Instance Method Details
#code? ⇒ Boolean
552 |
# File 'lib/html_to_markdown/native.rb', line 552 def code? = false |
#definition_item? ⇒ Boolean
558 |
# File 'lib/html_to_markdown/native.rb', line 558 def definition_item? = false |
#definition_list? ⇒ Boolean
556 |
# File 'lib/html_to_markdown/native.rb', line 556 def definition_list? = false |
#group? ⇒ Boolean
564 565 566 |
# File 'lib/html_to_markdown/native.rb', line 564 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
540 |
# File 'lib/html_to_markdown/native.rb', line 540 def heading? = false |
#image? ⇒ Boolean
550 |
# File 'lib/html_to_markdown/native.rb', line 550 def image? = false |
#list? ⇒ Boolean
544 |
# File 'lib/html_to_markdown/native.rb', line 544 def list? = false |
#list_item? ⇒ Boolean
546 |
# File 'lib/html_to_markdown/native.rb', line 546 def list_item? = false |
#metadata_block? ⇒ Boolean
562 |
# File 'lib/html_to_markdown/native.rb', line 562 def = true |
#paragraph? ⇒ Boolean
542 |
# File 'lib/html_to_markdown/native.rb', line 542 def paragraph? = false |
#quote? ⇒ Boolean
554 |
# File 'lib/html_to_markdown/native.rb', line 554 def quote? = false |
#raw_block? ⇒ Boolean
560 |
# File 'lib/html_to_markdown/native.rb', line 560 def raw_block? = false |
#table? ⇒ Boolean
548 |
# File 'lib/html_to_markdown/native.rb', line 548 def table? = false |