Class: HtmlToMarkdown::NodeContentParagraph

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

Overview

A paragraph of text.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#text ⇒ Object (readonly)

Returns the value of attribute text

Returns:

  • (Object) —

    the current value of text



484
485
486
# File 'lib/html_to_markdown/native.rb', line 484

def text
  @text
end

Class Method Details

.from_hash(hash) ⇒ Object



520
521
522
# File 'lib/html_to_markdown/native.rb', line 520

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

Instance Method Details

#code? ⇒ Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item? ⇒ Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list? ⇒ Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group? ⇒ Boolean

Returns:

  • (Boolean)


516
517
518
# File 'lib/html_to_markdown/native.rb', line 516

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

#heading? ⇒ Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image? ⇒ Boolean

Returns:

  • (Boolean)


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

def image? = false

#list? ⇒ Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item? ⇒ Boolean

Returns:

  • (Boolean)


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

def list_item? = false

#metadata_block? ⇒ Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph? ⇒ Boolean

Returns:

  • (Boolean)


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

def paragraph? = true

#quote? ⇒ Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block? ⇒ Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table? ⇒ Boolean

Returns:

  • (Boolean)


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

def table? = false