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

#grid ⇒ Object (readonly)

Returns the value of attribute grid

Returns:

  • (Object) —

    the current value of grid



607
608
609
# File 'lib/html_to_markdown/native.rb', line 607

def grid
  @grid
end

Class Method Details

.from_hash(hash) ⇒ Object



643
644
645
# File 'lib/html_to_markdown/native.rb', line 643

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

Instance Method Details

#code? ⇒ Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item? ⇒ Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list? ⇒ Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group? ⇒ Boolean

Returns:

  • (Boolean)


639
640
641
# File 'lib/html_to_markdown/native.rb', line 639

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

#heading? ⇒ Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image? ⇒ Boolean

Returns:

  • (Boolean)


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

def image? = false

#list? ⇒ Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item? ⇒ Boolean

Returns:

  • (Boolean)


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

def list_item? = false

#metadata_block? ⇒ Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph? ⇒ Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#quote? ⇒ Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block? ⇒ Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table? ⇒ Boolean

Returns:

  • (Boolean)


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

def table? = true