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



244
245
246
# File 'lib/html_to_markdown/native.rb', line 244

def text
  @text
end

Class Method Details

.from_hash(hash) ⇒ Object



281
282
283
# File 'lib/html_to_markdown/native.rb', line 281

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

Instance Method Details

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item?Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group?Boolean

Returns:

  • (Boolean)


277
278
279
# File 'lib/html_to_markdown/native.rb', line 277

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

#heading?Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#list?Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item?Boolean

Returns:

  • (Boolean)


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

def list_item? = true

#metadata_block?Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#quote?Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table?Boolean

Returns:

  • (Boolean)


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

def table? = false