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

#textObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



113
114
115
# File 'lib/html_to_markdown/native.rb', line 113

def text
  @text
end

Class Method Details

.from_hash(hash) ⇒ Object



149
150
151
# File 'lib/html_to_markdown/native.rb', line 149

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

Instance Method Details

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item?Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group?Boolean

Returns:

  • (Boolean)


145
146
147
# File 'lib/html_to_markdown/native.rb', line 145

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

#heading?Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#list?Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item?Boolean

Returns:

  • (Boolean)


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

def list_item? = false

#metadata_block?Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = true

#quote?Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table?Boolean

Returns:

  • (Boolean)


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

def table? = false