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



263
264
265
# File 'lib/html_to_markdown/native.rb', line 263

def grid
  @grid
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item?Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group?Boolean

Returns:

  • (Boolean)


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

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

#heading?Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#list?Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item?Boolean

Returns:

  • (Boolean)


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

def list_item? = false

#metadata_block?Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#quote?Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table?Boolean

Returns:

  • (Boolean)


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

def table? = true