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



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

def text
  @text
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item?Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group?Boolean

Returns:

  • (Boolean)


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

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

#heading?Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#list?Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item?Boolean

Returns:

  • (Boolean)


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

def list_item? = false

#metadata_block?Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = true

#quote?Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table?Boolean

Returns:

  • (Boolean)


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

def table? = false