Class: HtmlToMarkdown::NodeContentListItem
- Inherits:
-
Data
- Object
- Data
- HtmlToMarkdown::NodeContentListItem
- Extended by:
- T::Sig
- Includes:
- NodeContent
- Defined in:
- lib/html_to_markdown/native.rb
Overview
A single list item.
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
195 196 197 |
# File 'lib/html_to_markdown/native.rb', line 195 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
231 232 233 |
# File 'lib/html_to_markdown/native.rb', line 231 def self.from_hash(hash) new(text: hash[:text] || hash["text"]) end |
Instance Method Details
#code? ⇒ Boolean
215 |
# File 'lib/html_to_markdown/native.rb', line 215 def code? = false |
#definition_item? ⇒ Boolean
221 |
# File 'lib/html_to_markdown/native.rb', line 221 def definition_item? = false |
#definition_list? ⇒ Boolean
219 |
# File 'lib/html_to_markdown/native.rb', line 219 def definition_list? = false |
#group? ⇒ Boolean
227 228 229 |
# File 'lib/html_to_markdown/native.rb', line 227 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
203 |
# File 'lib/html_to_markdown/native.rb', line 203 def heading? = false |
#image? ⇒ Boolean
213 |
# File 'lib/html_to_markdown/native.rb', line 213 def image? = false |
#list? ⇒ Boolean
207 |
# File 'lib/html_to_markdown/native.rb', line 207 def list? = false |
#list_item? ⇒ Boolean
209 |
# File 'lib/html_to_markdown/native.rb', line 209 def list_item? = true |
#metadata_block? ⇒ Boolean
225 |
# File 'lib/html_to_markdown/native.rb', line 225 def = false |
#paragraph? ⇒ Boolean
205 |
# File 'lib/html_to_markdown/native.rb', line 205 def paragraph? = false |
#quote? ⇒ Boolean
217 |
# File 'lib/html_to_markdown/native.rb', line 217 def quote? = false |
#raw_block? ⇒ Boolean
223 |
# File 'lib/html_to_markdown/native.rb', line 223 def raw_block? = false |
#table? ⇒ Boolean
211 |
# File 'lib/html_to_markdown/native.rb', line 211 def table? = false |