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



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

Returns:

  • (Boolean)


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

def code? = false

#definition_item?Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group?Boolean

Returns:

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

Returns:

  • (Boolean)


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

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#list?Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item?Boolean

Returns:

  • (Boolean)


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

def list_item? = false

#metadata_block?Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#quote?Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table?Boolean

Returns:

  • (Boolean)


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

def table? = true