Class: HtmlToMarkdown::NodeContentMetadataBlock

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

Overview

A block of key-value metadata pairs (from <head> meta tags).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#entries ⇒ Object (readonly)

Returns the value of attribute entries

Returns:

  • (Object) —

    the current value of entries



907
908
909
# File 'lib/html_to_markdown/native.rb', line 907

def entries
  @entries
end

Class Method Details

.from_hash(hash) ⇒ Object



943
944
945
# File 'lib/html_to_markdown/native.rb', line 943

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

Instance Method Details

#code? ⇒ Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item? ⇒ Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list? ⇒ Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group? ⇒ Boolean

Returns:

  • (Boolean)


939
940
941
# File 'lib/html_to_markdown/native.rb', line 939

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

#heading? ⇒ Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image? ⇒ Boolean

Returns:

  • (Boolean)


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

def image? = false

#list? ⇒ Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item? ⇒ Boolean

Returns:

  • (Boolean)


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

def list_item? = false

#metadata_block? ⇒ Boolean

Returns:

  • (Boolean)


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

def  = true

#paragraph? ⇒ Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#quote? ⇒ Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block? ⇒ Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table? ⇒ Boolean

Returns:

  • (Boolean)


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

def table? = false