Class: HtmlToMarkdown::NodeContentTable

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#gridObject (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

Returns:

  • (Boolean)


280
# File 'lib/html_to_markdown/native.rb', line 280

def code? = false

#definition_item?Boolean

Returns:

  • (Boolean)


286
# File 'lib/html_to_markdown/native.rb', line 286

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


284
# File 'lib/html_to_markdown/native.rb', line 284

def definition_list? = false

#group?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


268
# File 'lib/html_to_markdown/native.rb', line 268

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


278
# File 'lib/html_to_markdown/native.rb', line 278

def image? = false

#list?Boolean

Returns:

  • (Boolean)


272
# File 'lib/html_to_markdown/native.rb', line 272

def list? = false

#list_item?Boolean

Returns:

  • (Boolean)


274
# File 'lib/html_to_markdown/native.rb', line 274

def list_item? = false

#metadata_block?Boolean

Returns:

  • (Boolean)


290
# File 'lib/html_to_markdown/native.rb', line 290

def  = false

#paragraph?Boolean

Returns:

  • (Boolean)


270
# File 'lib/html_to_markdown/native.rb', line 270

def paragraph? = false

#quote?Boolean

Returns:

  • (Boolean)


282
# File 'lib/html_to_markdown/native.rb', line 282

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


288
# File 'lib/html_to_markdown/native.rb', line 288

def raw_block? = false

#table?Boolean

Returns:

  • (Boolean)


276
# File 'lib/html_to_markdown/native.rb', line 276

def table? = true