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
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
#text ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
113 114 115 |
# File 'lib/html_to_markdown/native.rb', line 113 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
149 150 151 |
# File 'lib/html_to_markdown/native.rb', line 149 def self.from_hash(hash) new(text: hash[:text] || hash["text"]) end |
Instance Method Details
#code? ⇒ Boolean
133 |
# File 'lib/html_to_markdown/native.rb', line 133 def code? = false |
#definition_item? ⇒ Boolean
139 |
# File 'lib/html_to_markdown/native.rb', line 139 def definition_item? = false |
#definition_list? ⇒ Boolean
137 |
# File 'lib/html_to_markdown/native.rb', line 137 def definition_list? = false |
#group? ⇒ Boolean
145 146 147 |
# File 'lib/html_to_markdown/native.rb', line 145 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
121 |
# File 'lib/html_to_markdown/native.rb', line 121 def heading? = false |
#image? ⇒ Boolean
131 |
# File 'lib/html_to_markdown/native.rb', line 131 def image? = false |
#list? ⇒ Boolean
125 |
# File 'lib/html_to_markdown/native.rb', line 125 def list? = false |
#list_item? ⇒ Boolean
127 |
# File 'lib/html_to_markdown/native.rb', line 127 def list_item? = false |
#metadata_block? ⇒ Boolean
143 |
# File 'lib/html_to_markdown/native.rb', line 143 def = false |
#paragraph? ⇒ Boolean
123 |
# File 'lib/html_to_markdown/native.rb', line 123 def paragraph? = true |
#quote? ⇒ Boolean
135 |
# File 'lib/html_to_markdown/native.rb', line 135 def quote? = false |
#raw_block? ⇒ Boolean
141 |
# File 'lib/html_to_markdown/native.rb', line 141 def raw_block? = false |
#table? ⇒ Boolean
129 |
# File 'lib/html_to_markdown/native.rb', line 129 def table? = false |