Class: HtmlToMarkdown::NodeContentList
- Inherits:
-
Data
- Object
- Data
- HtmlToMarkdown::NodeContentList
- Extended by:
- T::Sig
- Includes:
- NodeContent
- Defined in:
- lib/html_to_markdown/native.rb
Overview
A list container (ordered or unordered). Children are ListItem nodes.
Instance Attribute Summary collapse
-
#ordered ⇒ 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
#ordered ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
202 203 204 |
# File 'lib/html_to_markdown/native.rb', line 202 def ordered @ordered end |
Class Method Details
.from_hash(hash) ⇒ Object
239 240 241 |
# File 'lib/html_to_markdown/native.rb', line 239 def self.from_hash(hash) new(ordered: hash[:ordered] || hash["ordered"]) end |
Instance Method Details
#code? ⇒ Boolean
223 |
# File 'lib/html_to_markdown/native.rb', line 223 def code? = false |
#definition_item? ⇒ Boolean
229 |
# File 'lib/html_to_markdown/native.rb', line 229 def definition_item? = false |
#definition_list? ⇒ Boolean
227 |
# File 'lib/html_to_markdown/native.rb', line 227 def definition_list? = false |
#group? ⇒ Boolean
235 236 237 |
# File 'lib/html_to_markdown/native.rb', line 235 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
211 |
# File 'lib/html_to_markdown/native.rb', line 211 def heading? = false |
#image? ⇒ Boolean
221 |
# File 'lib/html_to_markdown/native.rb', line 221 def image? = false |
#list? ⇒ Boolean
215 |
# File 'lib/html_to_markdown/native.rb', line 215 def list? = true |
#list_item? ⇒ Boolean
217 |
# File 'lib/html_to_markdown/native.rb', line 217 def list_item? = false |
#metadata_block? ⇒ Boolean
233 |
# File 'lib/html_to_markdown/native.rb', line 233 def = false |
#paragraph? ⇒ Boolean
213 |
# File 'lib/html_to_markdown/native.rb', line 213 def paragraph? = false |
#quote? ⇒ Boolean
225 |
# File 'lib/html_to_markdown/native.rb', line 225 def quote? = false |
#raw_block? ⇒ Boolean
231 |
# File 'lib/html_to_markdown/native.rb', line 231 def raw_block? = false |
#table? ⇒ Boolean
219 |
# File 'lib/html_to_markdown/native.rb', line 219 def table? = false |