Class: HtmlToMarkdown::NodeContentRawBlock
- Inherits:
-
Data
- Object
- Data
- HtmlToMarkdown::NodeContentRawBlock
- Extended by:
- T::Sig
- Includes:
- NodeContent
- Defined in:
- lib/html_to_markdown/native.rb
Overview
A raw block preserved as-is (e.g. <script>, <style> content).
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
-
#format ⇒ 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
#content ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
523 524 525 |
# File 'lib/html_to_markdown/native.rb', line 523 def content @content end |
#format ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
523 524 525 |
# File 'lib/html_to_markdown/native.rb', line 523 def format @format end |
Class Method Details
.from_hash(hash) ⇒ Object
564 565 566 |
# File 'lib/html_to_markdown/native.rb', line 564 def self.from_hash(hash) new(format: hash[:format] || hash["format"], content: hash[:content] || hash["content"]) end |
Instance Method Details
#code? ⇒ Boolean
548 |
# File 'lib/html_to_markdown/native.rb', line 548 def code? = false |
#definition_item? ⇒ Boolean
554 |
# File 'lib/html_to_markdown/native.rb', line 554 def definition_item? = false |
#definition_list? ⇒ Boolean
552 |
# File 'lib/html_to_markdown/native.rb', line 552 def definition_list? = false |
#group? ⇒ Boolean
560 561 562 |
# File 'lib/html_to_markdown/native.rb', line 560 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
536 |
# File 'lib/html_to_markdown/native.rb', line 536 def heading? = false |
#image? ⇒ Boolean
546 |
# File 'lib/html_to_markdown/native.rb', line 546 def image? = false |
#list? ⇒ Boolean
540 |
# File 'lib/html_to_markdown/native.rb', line 540 def list? = false |
#list_item? ⇒ Boolean
542 |
# File 'lib/html_to_markdown/native.rb', line 542 def list_item? = false |
#metadata_block? ⇒ Boolean
558 |
# File 'lib/html_to_markdown/native.rb', line 558 def = false |
#paragraph? ⇒ Boolean
538 |
# File 'lib/html_to_markdown/native.rb', line 538 def paragraph? = false |
#quote? ⇒ Boolean
550 |
# File 'lib/html_to_markdown/native.rb', line 550 def quote? = false |
#raw_block? ⇒ Boolean
556 |
# File 'lib/html_to_markdown/native.rb', line 556 def raw_block? = true |
#table? ⇒ Boolean
544 |
# File 'lib/html_to_markdown/native.rb', line 544 def table? = false |