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
160 161 162 |
# File 'lib/html_to_markdown/native.rb', line 160 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
197 198 199 |
# File 'lib/html_to_markdown/native.rb', line 197 def self.from_hash(hash) new(text: hash[:text] || hash["text"]) end |
Instance Method Details
#code? ⇒ Boolean
181 |
# File 'lib/html_to_markdown/native.rb', line 181 def code? = false |
#definition_item? ⇒ Boolean
187 |
# File 'lib/html_to_markdown/native.rb', line 187 def definition_item? = false |
#definition_list? ⇒ Boolean
185 |
# File 'lib/html_to_markdown/native.rb', line 185 def definition_list? = false |
#group? ⇒ Boolean
193 194 195 |
# File 'lib/html_to_markdown/native.rb', line 193 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
169 |
# File 'lib/html_to_markdown/native.rb', line 169 def heading? = false |
#image? ⇒ Boolean
179 |
# File 'lib/html_to_markdown/native.rb', line 179 def image? = false |
#list? ⇒ Boolean
173 |
# File 'lib/html_to_markdown/native.rb', line 173 def list? = false |
#list_item? ⇒ Boolean
175 |
# File 'lib/html_to_markdown/native.rb', line 175 def list_item? = false |
#metadata_block? ⇒ Boolean
191 |
# File 'lib/html_to_markdown/native.rb', line 191 def = false |
#paragraph? ⇒ Boolean
171 |
# File 'lib/html_to_markdown/native.rb', line 171 def paragraph? = true |
#quote? ⇒ Boolean
183 |
# File 'lib/html_to_markdown/native.rb', line 183 def quote? = false |
#raw_block? ⇒ Boolean
189 |
# File 'lib/html_to_markdown/native.rb', line 189 def raw_block? = false |
#table? ⇒ Boolean
177 |
# File 'lib/html_to_markdown/native.rb', line 177 def table? = false |