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



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

def grid
  @grid
end

Class Method Details

.from_hash(hash) ⇒ Object



323
324
325
# File 'lib/html_to_markdown/native.rb', line 323

def self.from_hash(hash)
  new(grid: hash[:grid] || hash["grid"])
end

Instance Method Details

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item?Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group?Boolean

Returns:

  • (Boolean)


319
320
321
# File 'lib/html_to_markdown/native.rb', line 319

def group? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#heading?Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#list?Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item?Boolean

Returns:

  • (Boolean)


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

def list_item? = false

#metadata_block?Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#quote?Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table?Boolean

Returns:

  • (Boolean)


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

def table? = true