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
217 218 219 |
# File 'lib/html_to_markdown/native.rb', line 217 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
254 255 256 |
# File 'lib/html_to_markdown/native.rb', line 254 def self.from_hash(hash) new(text: hash[:text] || hash["text"]) end |
Instance Method Details
#code? ⇒ Boolean
238 |
# File 'lib/html_to_markdown/native.rb', line 238 def code? = false |
#definition_item? ⇒ Boolean
244 |
# File 'lib/html_to_markdown/native.rb', line 244 def definition_item? = false |
#definition_list? ⇒ Boolean
242 |
# File 'lib/html_to_markdown/native.rb', line 242 def definition_list? = false |
#group? ⇒ Boolean
250 251 252 |
# File 'lib/html_to_markdown/native.rb', line 250 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
226 |
# File 'lib/html_to_markdown/native.rb', line 226 def heading? = false |
#image? ⇒ Boolean
236 |
# File 'lib/html_to_markdown/native.rb', line 236 def image? = false |
#list? ⇒ Boolean
230 |
# File 'lib/html_to_markdown/native.rb', line 230 def list? = false |
#list_item? ⇒ Boolean
232 |
# File 'lib/html_to_markdown/native.rb', line 232 def list_item? = true |
#metadata_block? ⇒ Boolean
248 |
# File 'lib/html_to_markdown/native.rb', line 248 def = false |
#paragraph? ⇒ Boolean
228 |
# File 'lib/html_to_markdown/native.rb', line 228 def paragraph? = false |
#quote? ⇒ Boolean
240 |
# File 'lib/html_to_markdown/native.rb', line 240 def quote? = false |
#raw_block? ⇒ Boolean
246 |
# File 'lib/html_to_markdown/native.rb', line 246 def raw_block? = false |
#table? ⇒ Boolean
234 |
# File 'lib/html_to_markdown/native.rb', line 234 def table? = false |