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



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

def ordered
  @ordered
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#code?Boolean

Returns:

  • (Boolean)


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

def code? = false

#definition_item?Boolean

Returns:

  • (Boolean)


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

def definition_item? = false

#definition_list?Boolean

Returns:

  • (Boolean)


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

def definition_list? = false

#group?Boolean

Returns:

  • (Boolean)


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

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

#heading?Boolean

Returns:

  • (Boolean)


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

def heading? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#list?Boolean

Returns:

  • (Boolean)


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

def list? = true

#list_item?Boolean

Returns:

  • (Boolean)


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

def list_item? = false

#metadata_block?Boolean

Returns:

  • (Boolean)


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

def  = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#quote?Boolean

Returns:

  • (Boolean)


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

def quote? = false

#raw_block?Boolean

Returns:

  • (Boolean)


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

def raw_block? = false

#table?Boolean

Returns:

  • (Boolean)


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

def table? = false