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
Returns the value of attribute entries.
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)
Returns the value of attribute entries
907 908 909 |
# File 'lib/html_to_markdown/native.rb', line 907 def entries @entries end |
Class Method Details
.from_hash(hash) ⇒ Object
943 944 945 |
# File 'lib/html_to_markdown/native.rb', line 943 def self.from_hash(hash) new(entries: hash[:entries] || hash["entries"]) end |
Instance Method Details
#code? ⇒ Boolean
927 |
# File 'lib/html_to_markdown/native.rb', line 927 def code? = false |
#definition_item? ⇒ Boolean
933 |
# File 'lib/html_to_markdown/native.rb', line 933 def definition_item? = false |
#definition_list? ⇒ Boolean
931 |
# File 'lib/html_to_markdown/native.rb', line 931 def definition_list? = false |
#group? ⇒ Boolean
939 940 941 |
# File 'lib/html_to_markdown/native.rb', line 939 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
915 |
# File 'lib/html_to_markdown/native.rb', line 915 def heading? = false |
#image? ⇒ Boolean
925 |
# File 'lib/html_to_markdown/native.rb', line 925 def image? = false |
#list? ⇒ Boolean
919 |
# File 'lib/html_to_markdown/native.rb', line 919 def list? = false |
#list_item? ⇒ Boolean
921 |
# File 'lib/html_to_markdown/native.rb', line 921 def list_item? = false |
#metadata_block? ⇒ Boolean
937 |
# File 'lib/html_to_markdown/native.rb', line 937 def = true |
#paragraph? ⇒ Boolean
917 |
# File 'lib/html_to_markdown/native.rb', line 917 def paragraph? = false |
#quote? ⇒ Boolean
929 |
# File 'lib/html_to_markdown/native.rb', line 929 def quote? = false |
#raw_block? ⇒ Boolean
935 |
# File 'lib/html_to_markdown/native.rb', line 935 def raw_block? = false |
#table? ⇒ Boolean
923 |
# File 'lib/html_to_markdown/native.rb', line 923 def table? = false |