Class: HtmlToMarkdown::NodeContentList

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

Overview

A list container (ordered or unordered). Children are ListItem nodes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#orderedObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



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

def ordered
  @ordered
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item?Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group?Boolean

Returns:

  • (Boolean)


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

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

#heading?Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#list?Boolean

Returns:

  • (Boolean)


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

def list? = true

#list_item?Boolean

Returns:

  • (Boolean)


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

def list_item? = false

#metadata_block?Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#quote?Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table?Boolean

Returns:

  • (Boolean)


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

def table? = false