Class: HtmlToMarkdown::NodeContentTable
- Inherits:
-
Data
- Object
- Data
- HtmlToMarkdown::NodeContentTable
- Extended by:
- T::Sig
- Includes:
- NodeContent
- Defined in:
- lib/html_to_markdown/native.rb
Overview
A table with structured cell data.
Instance Attribute Summary collapse
-
#grid ⇒ 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
#grid ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
259 260 261 |
# File 'lib/html_to_markdown/native.rb', line 259 def grid @grid end |
Class Method Details
.from_hash(hash) ⇒ Object
296 297 298 |
# File 'lib/html_to_markdown/native.rb', line 296 def self.from_hash(hash) new(grid: hash[:grid] || hash["grid"]) end |
Instance Method Details
#code? ⇒ Boolean
280 |
# File 'lib/html_to_markdown/native.rb', line 280 def code? = false |
#definition_item? ⇒ Boolean
286 |
# File 'lib/html_to_markdown/native.rb', line 286 def definition_item? = false |
#definition_list? ⇒ Boolean
284 |
# File 'lib/html_to_markdown/native.rb', line 284 def definition_list? = false |
#group? ⇒ Boolean
292 293 294 |
# File 'lib/html_to_markdown/native.rb', line 292 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
268 |
# File 'lib/html_to_markdown/native.rb', line 268 def heading? = false |
#image? ⇒ Boolean
278 |
# File 'lib/html_to_markdown/native.rb', line 278 def image? = false |
#list? ⇒ Boolean
272 |
# File 'lib/html_to_markdown/native.rb', line 272 def list? = false |
#list_item? ⇒ Boolean
274 |
# File 'lib/html_to_markdown/native.rb', line 274 def list_item? = false |
#metadata_block? ⇒ Boolean
290 |
# File 'lib/html_to_markdown/native.rb', line 290 def = false |
#paragraph? ⇒ Boolean
270 |
# File 'lib/html_to_markdown/native.rb', line 270 def paragraph? = false |
#quote? ⇒ Boolean
282 |
# File 'lib/html_to_markdown/native.rb', line 282 def quote? = false |
#raw_block? ⇒ Boolean
288 |
# File 'lib/html_to_markdown/native.rb', line 288 def raw_block? = false |
#table? ⇒ Boolean
276 |
# File 'lib/html_to_markdown/native.rb', line 276 def table? = true |