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
154 155 156 |
# File 'lib/html_to_markdown/native.rb', line 154 def ordered @ordered end |
Class Method Details
.from_hash(hash) ⇒ Object
190 191 192 |
# File 'lib/html_to_markdown/native.rb', line 190 def self.from_hash(hash) new(ordered: hash[:ordered] || hash["ordered"]) end |
Instance Method Details
#code? ⇒ Boolean
174 |
# File 'lib/html_to_markdown/native.rb', line 174 def code? = false |
#definition_item? ⇒ Boolean
180 |
# File 'lib/html_to_markdown/native.rb', line 180 def definition_item? = false |
#definition_list? ⇒ Boolean
178 |
# File 'lib/html_to_markdown/native.rb', line 178 def definition_list? = false |
#group? ⇒ Boolean
186 187 188 |
# File 'lib/html_to_markdown/native.rb', line 186 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
162 |
# File 'lib/html_to_markdown/native.rb', line 162 def heading? = false |
#image? ⇒ Boolean
172 |
# File 'lib/html_to_markdown/native.rb', line 172 def image? = false |
#list? ⇒ Boolean
166 |
# File 'lib/html_to_markdown/native.rb', line 166 def list? = true |
#list_item? ⇒ Boolean
168 |
# File 'lib/html_to_markdown/native.rb', line 168 def list_item? = false |
#metadata_block? ⇒ Boolean
184 |
# File 'lib/html_to_markdown/native.rb', line 184 def = false |
#paragraph? ⇒ Boolean
164 |
# File 'lib/html_to_markdown/native.rb', line 164 def paragraph? = false |
#quote? ⇒ Boolean
176 |
# File 'lib/html_to_markdown/native.rb', line 176 def quote? = false |
#raw_block? ⇒ Boolean
182 |
# File 'lib/html_to_markdown/native.rb', line 182 def raw_block? = false |
#table? ⇒ Boolean
170 |
# File 'lib/html_to_markdown/native.rb', line 170 def table? = false |