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



160
161
162
# File 'lib/html_to_markdown/native.rb', line 160

def text
  @text
end

Class Method Details

.from_hash(hash) ⇒ Object



197
198
199
# File 'lib/html_to_markdown/native.rb', line 197

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

Instance Method Details

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item?Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group?Boolean

Returns:

  • (Boolean)


193
194
195
# File 'lib/html_to_markdown/native.rb', line 193

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

#heading?Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#list?Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item?Boolean

Returns:

  • (Boolean)


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

def list_item? = false

#metadata_block?Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = true

#quote?Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table?Boolean

Returns:

  • (Boolean)


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

def table? = false