Class: HtmlToMarkdown::NodeContentParagraph
- Inherits:
-
Data
- Object
- Data
- HtmlToMarkdown::NodeContentParagraph
- Extended by:
- T::Sig
- Includes:
- NodeContent
- Defined in:
- lib/html_to_markdown/native.rb
Overview
A paragraph of text.
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
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
#text ⇒ Object (readonly)
Returns the value of attribute text
484 485 486 |
# File 'lib/html_to_markdown/native.rb', line 484 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
520 521 522 |
# File 'lib/html_to_markdown/native.rb', line 520 def self.from_hash(hash) new(text: hash[:text] || hash["text"]) end |
Instance Method Details
#code? ⇒ Boolean
504 |
# File 'lib/html_to_markdown/native.rb', line 504 def code? = false |
#definition_item? ⇒ Boolean
510 |
# File 'lib/html_to_markdown/native.rb', line 510 def definition_item? = false |
#definition_list? ⇒ Boolean
508 |
# File 'lib/html_to_markdown/native.rb', line 508 def definition_list? = false |
#group? ⇒ Boolean
516 517 518 |
# File 'lib/html_to_markdown/native.rb', line 516 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
492 |
# File 'lib/html_to_markdown/native.rb', line 492 def heading? = false |
#image? ⇒ Boolean
502 |
# File 'lib/html_to_markdown/native.rb', line 502 def image? = false |
#list? ⇒ Boolean
496 |
# File 'lib/html_to_markdown/native.rb', line 496 def list? = false |
#list_item? ⇒ Boolean
498 |
# File 'lib/html_to_markdown/native.rb', line 498 def list_item? = false |
#metadata_block? ⇒ Boolean
514 |
# File 'lib/html_to_markdown/native.rb', line 514 def = false |
#paragraph? ⇒ Boolean
494 |
# File 'lib/html_to_markdown/native.rb', line 494 def paragraph? = true |
#quote? ⇒ Boolean
506 |
# File 'lib/html_to_markdown/native.rb', line 506 def quote? = false |
#raw_block? ⇒ Boolean
512 |
# File 'lib/html_to_markdown/native.rb', line 512 def raw_block? = false |
#table? ⇒ Boolean
500 |
# File 'lib/html_to_markdown/native.rb', line 500 def table? = false |