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
236 237 238 |
# File 'lib/html_to_markdown/native.rb', line 236 def grid @grid end |
Class Method Details
.from_hash(hash) ⇒ Object
272 273 274 |
# File 'lib/html_to_markdown/native.rb', line 272 def self.from_hash(hash) new(grid: hash[:grid] || hash["grid"]) end |
Instance Method Details
#code? ⇒ Boolean
256 |
# File 'lib/html_to_markdown/native.rb', line 256 def code? = false |
#definition_item? ⇒ Boolean
262 |
# File 'lib/html_to_markdown/native.rb', line 262 def definition_item? = false |
#definition_list? ⇒ Boolean
260 |
# File 'lib/html_to_markdown/native.rb', line 260 def definition_list? = false |
#group? ⇒ Boolean
268 269 270 |
# File 'lib/html_to_markdown/native.rb', line 268 def group? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#heading? ⇒ Boolean
244 |
# File 'lib/html_to_markdown/native.rb', line 244 def heading? = false |
#image? ⇒ Boolean
254 |
# File 'lib/html_to_markdown/native.rb', line 254 def image? = false |
#list? ⇒ Boolean
248 |
# File 'lib/html_to_markdown/native.rb', line 248 def list? = false |
#list_item? ⇒ Boolean
250 |
# File 'lib/html_to_markdown/native.rb', line 250 def list_item? = false |
#metadata_block? ⇒ Boolean
266 |
# File 'lib/html_to_markdown/native.rb', line 266 def = false |
#paragraph? ⇒ Boolean
246 |
# File 'lib/html_to_markdown/native.rb', line 246 def paragraph? = false |
#quote? ⇒ Boolean
258 |
# File 'lib/html_to_markdown/native.rb', line 258 def quote? = false |
#raw_block? ⇒ Boolean
264 |
# File 'lib/html_to_markdown/native.rb', line 264 def raw_block? = false |
#table? ⇒ Boolean
252 |
# File 'lib/html_to_markdown/native.rb', line 252 def table? = true |