Class: HtmlToMarkdown::NodeContentListItem

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

Overview

A single list item.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#textObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



195
196
197
# File 'lib/html_to_markdown/native.rb', line 195

def text
  @text
end

Class Method Details

.from_hash(hash) ⇒ Object



231
232
233
# File 'lib/html_to_markdown/native.rb', line 231

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

Instance Method Details

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item?Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group?Boolean

Returns:

  • (Boolean)


227
228
229
# File 'lib/html_to_markdown/native.rb', line 227

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

#heading?Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#list?Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item?Boolean

Returns:

  • (Boolean)


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

def list_item? = true

#metadata_block?Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#quote?Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table?Boolean

Returns:

  • (Boolean)


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

def table? = false