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



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

def text
  @text
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item?Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group?Boolean

Returns:

  • (Boolean)


250
251
252
# File 'lib/html_to_markdown/native.rb', line 250

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

#heading?Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#list?Boolean

Returns:

  • (Boolean)


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

def list? = false

#list_item?Boolean

Returns:

  • (Boolean)


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

def list_item? = true

#metadata_block?Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#quote?Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table?Boolean

Returns:

  • (Boolean)


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

def table? = false