Class: HtmlToMarkdown::NodeContentGroup

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
NodeContent
Defined in:
lib/html_to_markdown/native.rb

Overview

A section grouping container (auto-generated from heading hierarchy).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#heading_level ⇒ Object (readonly)

Returns the value of attribute heading_level

Returns:

  • (Object) —

    the current value of heading_level



948
949
950
# File 'lib/html_to_markdown/native.rb', line 948

def heading_level
  @heading_level
end

#heading_text ⇒ Object (readonly)

Returns the value of attribute heading_text

Returns:

  • (Object) —

    the current value of heading_text



948
949
950
# File 'lib/html_to_markdown/native.rb', line 948

def heading_text
  @heading_text
end

#label ⇒ Object (readonly)

Returns the value of attribute label

Returns:

  • (Object) —

    the current value of label



948
949
950
# File 'lib/html_to_markdown/native.rb', line 948

def label
  @label
end

Class Method Details

.from_hash(hash) ⇒ Object



990
991
992
993
994
995
996
# File 'lib/html_to_markdown/native.rb', line 990

def self.from_hash(hash)
  new(
    label: hash[:label] || hash["label"],
    heading_level: hash[:heading_level] || hash["heading_level"],
    heading_text: hash[:heading_text] || hash["heading_text"]
  )
end

Instance Method Details

#code? ⇒ Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item? ⇒ Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list? ⇒ Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group? ⇒ Boolean

Returns:

  • (Boolean)


986
987
988
# File 'lib/html_to_markdown/native.rb', line 986

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

#heading? ⇒ Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image? ⇒ Boolean

Returns:

  • (Boolean)


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

def image? = false

#list? ⇒ Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item? ⇒ Boolean

Returns:

  • (Boolean)


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

def list_item? = false

#metadata_block? ⇒ Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph? ⇒ Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#quote? ⇒ Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block? ⇒ Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table? ⇒ Boolean

Returns:

  • (Boolean)


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

def table? = false