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
244 245 246 |
# File 'lib/html_to_markdown/native.rb', line 244 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
281 282 283 |
# File 'lib/html_to_markdown/native.rb', line 281 def self.from_hash(hash) new(text: hash[:text] || hash["text"]) end |
Instance Method Details
#code? ⇒ Boolean
265 |
# File 'lib/html_to_markdown/native.rb', line 265 def code? = false |
#definition_item? ⇒ Boolean
271 |
# File 'lib/html_to_markdown/native.rb', line 271 def definition_item? = false |
#definition_list? ⇒ Boolean
269 |
# File 'lib/html_to_markdown/native.rb', line 269 def definition_list? = false |
#group? ⇒ Boolean
277 278 279 |
# File 'lib/html_to_markdown/native.rb', line 277 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
253 |
# File 'lib/html_to_markdown/native.rb', line 253 def heading? = false |
#image? ⇒ Boolean
263 |
# File 'lib/html_to_markdown/native.rb', line 263 def image? = false |
#list? ⇒ Boolean
257 |
# File 'lib/html_to_markdown/native.rb', line 257 def list? = false |
#list_item? ⇒ Boolean
259 |
# File 'lib/html_to_markdown/native.rb', line 259 def list_item? = true |
#metadata_block? ⇒ Boolean
275 |
# File 'lib/html_to_markdown/native.rb', line 275 def = false |
#paragraph? ⇒ Boolean
255 |
# File 'lib/html_to_markdown/native.rb', line 255 def paragraph? = false |
#quote? ⇒ Boolean
267 |
# File 'lib/html_to_markdown/native.rb', line 267 def quote? = false |
#raw_block? ⇒ Boolean
273 |
# File 'lib/html_to_markdown/native.rb', line 273 def raw_block? = false |
#table? ⇒ Boolean
261 |
# File 'lib/html_to_markdown/native.rb', line 261 def table? = false |